/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Custom Properties — TOKİ Light Theme ===== */
:root {
  /* TOKİ Brand Colors updated to Alçatı Soft Red */
  --toki-red: #b62b29;
  --toki-red-dark: #8c201e;
  --toki-red-light: #df4441;
  --toki-blue: #1B3A5C;
  --toki-blue-dark: #0F2640;
  --toki-blue-light: #2A5A8C;

  /* Backgrounds */
  --bg-primary: #F8F9FB;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFBFC;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #F3F4F6;
  --bg-hero: linear-gradient(135deg, #1B3A5C 0%, #2A5A8C 40%, #DA291C 100%);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-accent: var(--toki-red);
  --text-on-dark: #FFFFFF;

  /* Accents */
  --accent-primary: var(--toki-red);
  --accent-secondary: var(--toki-blue);
  --accent-success: #059669;
  --accent-warning: #D97706;
  --accent-danger: #DC2626;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--toki-red), var(--toki-blue));
  --gradient-hero: linear-gradient(135deg, #1B3A5C 0%, #253D5B 50%, #DA291C 100%);
  --gradient-card: linear-gradient(135deg, rgba(218, 41, 28, 0.06), rgba(27, 58, 92, 0.06));
  --gradient-accent: linear-gradient(135deg, var(--toki-red), #E85D52);

  /* Borders */
  --border-color: #E5E7EB;
  --border-hover: #D1D5DB;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 24px rgba(218, 41, 28, 0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Subtle Background Pattern ===== */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(218, 41, 28, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(27, 58, 92, 0.03) 0%, transparent 50%);
}

/* ===== Container ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--toki-blue);
}

.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-hero);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.navbar-links a:hover {
  color: var(--toki-red);
  background: rgba(218, 41, 28, 0.05);
}

.navbar-links a.active {
  color: var(--toki-red);
  background: rgba(218, 41, 28, 0.08);
  font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  background: var(--gradient-hero);
  margin: 0 -9999px;
  padding-left: 9999px;
  padding-right: 9999px;
  margin-bottom: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.85);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ===== Search Bar ===== */
.search-container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.search-container input {
  width: 100%;
  padding: 14px 18px 14px 50px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.search-container input:focus {
  border-color: var(--toki-red);
  box-shadow: 0 0 0 4px rgba(218, 41, 28, 0.1), var(--shadow-lg);
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.search-container .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 0 24px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--toki-blue);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--toki-blue);
}

.section-title .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Project Cards Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.project-card .card-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.08);
  color: var(--accent-success);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.project-card .card-badge.pending {
  background: rgba(217, 119, 6, 0.08);
  color: var(--accent-warning);
  border-color: rgba(217, 119, 6, 0.15);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--toki-blue);
}

.project-card .card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-card .card-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.project-card .card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card .card-stat-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--toki-blue);
}

.project-card .card-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card .card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.project-card:hover .card-arrow {
  background: var(--toki-red);
  color: white;
  transform: translateX(4px);
}

/* ===== Project Detail Page ===== */
.page-header {
  padding: 32px 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--toki-red);
}

.breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--toki-blue);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== Filter Panel ===== */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--toki-blue);
}

.filter-header .clear-filters {
  font-size: 0.85rem;
  color: var(--toki-red);
  cursor: pointer;
  font-weight: 500;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: inherit;
}

.filter-header .clear-filters:hover {
  color: var(--toki-red-dark);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  background-color: var(--bg-input);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--toki-red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.08);
  background: white;
}

.filter-group select option {
  background: white;
  color: var(--text-primary);
}

/* ===== Info Stats Cards ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card .info-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--toki-red);
}

.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Data Table ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.table-toolbar .toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-search {
  position: relative;
}

.table-search input {
  padding: 8px 12px 8px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 280px;
  transition: all var(--transition-fast);
}

.table-search input:focus {
  border-color: var(--toki-red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.08);
  width: 320px;
  background: white;
}

.table-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-count strong {
  color: var(--toki-red);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  background: var(--bg-input);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--toki-blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
  position: relative;
}

.data-table th:hover {
  color: var(--toki-red);
}

.data-table th .sort-icon {
  margin-left: 6px;
  opacity: 0.3;
  font-size: 0.7rem;
  transition: opacity var(--transition-fast);
}

.data-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--toki-red);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(218, 41, 28, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .name-cell {
  color: var(--text-primary);
  font-weight: 600;
}

.data-table .category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-badge.genc {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.category-badge.diger {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.category-badge.engelli {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.category-badge.sehitgazi {
  background: rgba(218, 41, 28, 0.08);
  color: var(--toki-red);
  border: 1px solid rgba(218, 41, 28, 0.15);
}

.data-table .room-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(27, 58, 92, 0.08);
  color: var(--toki-blue);
  border: 1px solid rgba(27, 58, 92, 0.12);
}

.data-table .project-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--toki-red);
  color: var(--toki-red);
  background: rgba(218, 41, 28, 0.04);
}

.pagination button.active {
  background: var(--toki-red);
  border-color: var(--toki-red);
  color: white;
  font-weight: 600;
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination .page-info {
  margin: 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  background: white;
}

.footer a {
  color: var(--toki-red);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--toki-red-dark);
}

/* ===== City Cards Grid ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 60px;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.city-card:hover {
  border-color: var(--toki-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(218, 41, 28, 0.1);
}

.city-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.city-card-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--toki-blue);
}

.city-record-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--toki-red);
  background: rgba(218, 41, 28, 0.06);
  padding: 2px 8px;
  border-radius: 100px;
}

.city-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-region-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.city-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.city-card:hover .city-arrow {
  color: var(--toki-red);
  transform: translateX(3px);
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--toki-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ===== Loading skeleton ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, #e5e7eb 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ===== Region Card Grid ===== */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.region-card:hover {
  border-color: var(--toki-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(218, 41, 28, 0.1);
}

.region-card .region-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.region-card .region-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--toki-blue);
}

.region-card .region-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Back Button ===== */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
}

.back-button:hover {
  border-color: var(--toki-red);
  color: var(--toki-red);
  background: rgba(218, 41, 28, 0.03);
}

/* ===== Per-page selector ===== */
.per-page-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.per-page-select select {
  padding: 6px 28px 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-color: var(--bg-input);
}

/* ===== Highlight matched search text ===== */
mark {
  background: rgba(218, 41, 28, 0.15);
  color: var(--toki-red-dark);
  border-radius: 2px;
  padding: 0 2px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .stats-bar {
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 9999px 36px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats-bar {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-item .stat-value {
    font-size: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-search input {
    width: 200px;
  }

  .table-search input:focus {
    width: 240px;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .navbar-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    gap: 16px;
  }

  .pagination button {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}