:root {
  --primary-color: #eb3505;
  --primary-dark: #d43004;
  --secondary-color: #1e293b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --text-color: #475569;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08);
  --gradient-primary: linear-gradient(135deg, #eb3505 0%, #d43004 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(14px, 1.5vw, 16px);
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(
      135deg,
      rgba(30, 41, 59, 0.95),
      rgba(30, 41, 59, 0.85)
    ),
    url("../img/background/dpwhbg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(60px, 10vw, 80px) 0;
  position: relative;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(235, 53, 5, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

.hero-logo {
  width: clamp(70px, 12vw, 100px);
  height: auto;
  margin-bottom: clamp(16px, 2.5vw, 20px);
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-size: clamp(24px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: clamp(10px, 1.5vw, 12px);
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  padding: 0 clamp(16px, 3vw, 20px);
}

.hero-subtitle {
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: clamp(10px, 1.5vw, 12px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0 clamp(16px, 3vw, 20px);
}

.hero-description {
  font-size: clamp(13px, 1.6vw, 18px);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 20px);
  line-height: 1.6;
}

/* Contracts Section */
.contracts-section {
  padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 32px);
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 20px);
}

.section-title-wrapper {
  flex: 1;
}

.section-title {
  font-size: clamp(20px, 3.5vw, 32px);
  color: var(--secondary-color);
  font-weight: 800;
  margin-bottom: clamp(6px, 1vw, 8px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 12px);
  line-height: 1.2;
}

.section-title i {
  color: var(--primary-color);
  font-size: clamp(18px, 3vw, 28px);
}

.section-subtitle {
  color: var(--text-color);
  font-size: clamp(12px, 1.4vw, 16px);
  margin: 0;
  line-height: 1.5;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 8px);
  padding: clamp(10px, 1.5vw, 12px) clamp(18px, 3vw, 24px);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  font-size: clamp(13px, 1.4vw, 15px);
  border-radius: clamp(8px, 1vw, 10px);
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border: none;
  color: var(--white);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* Filters Card */
.filters-card {
  background: var(--white);
  padding: clamp(18px, 3vw, 24px);
  border-radius: clamp(10px, 1.2vw, 12px);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(18px, 3vw, 24px);
  border: 1px solid var(--border-color);
}

.filter-label {
  display: block;
  font-size: clamp(12px, 1.4vw, 13px);
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: clamp(6px, 0.8vw, 8px);
  white-space: nowrap;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: clamp(14px, 2vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
  font-size: clamp(13px, 1.4vw, 15px);
}

.search-input {
  padding-left: clamp(38px, 5vw, 45px);
  height: clamp(44px, 6vw, 48px);
  border: 2px solid var(--border-color);
  border-radius: clamp(8px, 1vw, 10px);
  transition: all 0.3s ease;
  font-size: clamp(13px, 1.4vw, 15px);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(235, 53, 5, 0.1);
}

.filter-select {
  height: clamp(44px, 6vw, 48px);
  border: 2px solid var(--border-color);
  border-radius: clamp(8px, 1vw, 10px);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: clamp(13px, 1.4vw, 15px);
  padding: 0 clamp(12px, 1.8vw, 14px);
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(235, 53, 5, 0.1);
}

.btn-clear {
  height: clamp(44px, 6vw, 48px);
  border: 2px solid var(--border-color);
  border-radius: clamp(8px, 1vw, 10px);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: clamp(13px, 1.4vw, 15px);
}

/* Table Card */
.table-card {
  background: var(--white);
  border-radius: clamp(10px, 1.2vw, 12px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-responsive {
  overflow-x: auto;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  -webkit-overflow-scrolling: touch;
  transition: scrollbar-color 0.3s ease;
}

.table-responsive:hover {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.table-responsive:hover::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.table-responsive:hover::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.table-responsive:hover::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.contracts-table {
  margin: 0;
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
}

.contracts-table thead {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: var(--white);
  position: relative;
}

.contracts-table thead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    transparent,
    var(--primary-color)
  );
}

.contracts-table thead th {
  padding: clamp(16px, 2.5vw, 20px) clamp(12px, 2vw, 16px);
  font-weight: 700;
  font-size: clamp(11px, 1.3vw, 13px);
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.1vw, 1px);
  white-space: nowrap;
  border: none;
  text-align: left;
  position: relative;
  background: transparent;
  color: var(--white);
}

.contracts-table thead th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.contracts-table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
  white-space: nowrap;
}

.contracts-table tbody tr:hover {
  background: linear-gradient(90deg, #fef2f2, #fff);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--primary-color), 0 4px 12px rgba(235, 53, 5, 0.1);
  border-left: 4px solid var(--primary-color);
}

.contracts-table tbody td {
  padding: clamp(14px, 2.2vw, 18px) clamp(12px, 2vw, 16px);
  font-size: clamp(12px, 1.4vw, 14px);
  vertical-align: middle;
  border: none;
  transition: all 0.3s ease;
}

.contract-id {
  color: var(--primary-color);
  font-weight: 800;
  font-size: clamp(13px, 1.5vw, 15px);
  letter-spacing: 0.3px;
}

.description-cell {
  max-width: clamp(250px, 35vw, 350px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--secondary-color);
  font-weight: 500;
  line-height: 1.5;
}

.cost-cell {
  font-weight: 800;
  color: var(--secondary-color);
  font-size: clamp(13px, 1.5vw, 15px);
  white-space: nowrap;
}

.region-badge {
  display: inline-block;
  padding: clamp(6px, 1vw, 8px) clamp(10px, 1.5vw, 14px);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: clamp(6px, 0.8vw, 8px);
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 1.8vw, 16px);
  border-radius: 25px;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.1vw, 0.8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.status-notyetstarted {
  background: linear-gradient(135deg, #f3e8ff, #ddd6fe);
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.status-ongoing {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status-suspended {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #7c2d12;
  border: 1px solid #f87171;
}

.status-completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.status-terminated {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Progress Container */
.progress-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 10px);
  min-width: clamp(100px, 15vw, 130px);
}

.progress-bar-container {
  position: relative;
  flex: 1;
  height: clamp(8px, 1.2vw, 10px);
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
  border-radius: clamp(8px, 1vw, 10px);
  overflow: visible;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color), #34d399, #6ee7b7);
  border-radius: clamp(8px, 1vw, 10px);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-text {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 800;
  color: var(--secondary-color);
  min-width: clamp(35px, 5vw, 42px);
  text-align: right;
  background: linear-gradient(135deg, var(--success-color), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.duration-text {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: clamp(12px, 1.4vw, 14px);
  white-space: nowrap;
}

/* View Details Button */
.btn-view-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 5vw, 40px);
  height: clamp(36px, 5vw, 40px);
  background: linear-gradient(135deg, var(--info-color), #60a5fa);
  color: var(--white);
  border: none;
  border-radius: clamp(8px, 1vw, 10px);
  font-size: clamp(14px, 1.5vw, 16px);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-view-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-view-detail:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.btn-view-detail:hover::before {
  left: 100%;
}

.btn-view-detail:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-view-detail i {
  font-size: clamp(14px, 1.5vw, 16px);
  transition: transform 0.3s ease;
}

.btn-view-detail:hover i {
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 60px) clamp(16px, 3vw, 20px);
}

.empty-state i {
  font-size: clamp(56px, 9vw, 72px);
  color: var(--border-color);
  margin-bottom: clamp(16px, 2.5vw, 20px);
}

.empty-state p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-color);
  margin: 0;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  border-top: 2px solid var(--border-color);
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 16px);
}

.entries-info {
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--text-color);
  font-weight: 500;
  white-space: nowrap;
}

.entries-info span {
  font-weight: 700;
  color: var(--secondary-color);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 10px);
  flex-wrap: wrap;
  justify-content: center;
}

.page-info {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  padding: 0 clamp(8px, 1.5vw, 12px);
}

.page-info span {
  color: var(--primary-color);
}

.entries-select {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 8px);
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--text-color);
  white-space: nowrap;
}

.entries-select select {
  width: clamp(65px, 9vw, 75px);
  padding: clamp(6px, 1vw, 8px) clamp(8px, 1.2vw, 10px);
  font-size: clamp(13px, 1.4vw, 15px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
}

.pagination-controls button {
  min-width: clamp(34px, 5vw, 38px);
  height: clamp(34px, 5vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: var(--white);
  padding: clamp(24px, 4vw, 32px) clamp(16px, 3vw, 20px);
  border-top: clamp(2px, 0.5vw, 3px) solid var(--primary-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  margin-top: clamp(40px, 8vw, 60px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 24px);
}

.footer-left p {
  margin: 0;
  font-size: clamp(11px, 1.5vw, 14px);
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(11px, 1.5vw, 14px);
  transition: all 0.3s ease;
  padding: clamp(6px, 0.8vw, 8px) 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 24px 0;
    margin-top: 40px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-left p {
    font-size: 12px;
  }

  .footer-right {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .footer-link {
    font-size: 12px;
  }

  .info-card {
    padding: clamp(14px, 2.5vw, 18px);
    gap: clamp(10px, 2vw, 16px);
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 0;
    margin-top: 32px;
  }

  .footer-content {
    gap: 12px;
  }

  .footer-right {
    gap: 12px;
  }

  .footer-link {
    font-size: 11px;
  }

  .report-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 16px);
  }

  .info-card {
    padding: clamp(12px, 2vw, 16px);
    gap: clamp(8px, 1.5vw, 12px);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-icon {
    width: clamp(32px, 4.5vw, 40px);
    height: clamp(32px, 4.5vw, 40px);
    font-size: clamp(14px, 1.8vw, 18px);
    align-self: center;
  }

  .info-card h3 {
    font-size: clamp(11px, 1.5vw, 13px);
    margin: 0;
  }

  .info-card p {
    font-size: clamp(10px, 1.2vw, 12px);
    margin: 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  flex-shrink: 0;
}

.stat-icon.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  box-shadow: 0 4px 12px rgba(235, 53, 5, 0.3);
}

.stat-icon.success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-icon.warning {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-icon.info {
  background: linear-gradient(135deg, var(--info-color), #1d4ed8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-icon.danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0;
  line-height: 1;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

.stat-change.neutral {
  color: var(--text-color);
}

/* Report Section */
.report-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px);
  border-top: 2px solid var(--border-color);
  margin-top: 0;
}

.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.report-header {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.report-header h2 {
  font-size: clamp(24px, 5vw, 40px);
  color: var(--secondary-color);
  font-weight: 800;
  margin-bottom: clamp(8px, 1.5vw, 16px);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.report-header p {
  font-size: clamp(13px, 2vw, 18px);
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.report-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

.report-form-wrapper {
  background: var(--white);
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: clamp(10px, 1.5vw, 16px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
}

.report-form .form-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 8px);
}

.report-form label {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: var(--danger-color);
  font-size: clamp(14px, 1.5vw, 16px);
}

.report-form input,
.report-form textarea,
.report-form select {
  padding: clamp(10px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
  border: 2px solid var(--border-color);
  border-radius: clamp(6px, 1vw, 8px);
  font-size: clamp(12px, 1.4vw, 14px);
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.report-form input:focus,
.report-form textarea:focus,
.report-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(235, 53, 5, 0.1);
}

.report-form input::placeholder,
.report-form textarea::placeholder {
  color: #94a3b8;
}

.report-form textarea {
  resize: vertical;
  min-height: clamp(100px, 15vw, 150px);
}

.btn-submit-report {
  padding: clamp(11px, 1.8vw, 14px) clamp(18px, 3vw, 28px);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border: none;
  border-radius: clamp(6px, 1vw, 8px);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(235, 53, 5, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit-report::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-submit-report:hover {
  background: linear-gradient(135deg, var(--primary-dark), #b91c1c);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(235, 53, 5, 0.5);
}

.btn-submit-report:hover::before {
  left: 100%;
}

.btn-submit-report:active {
  transform: translateY(-1px);
}

.report-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 24px);
}

.info-card {
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
  border-radius: clamp(10px, 1.5vw, 12px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2.5vw, 20px);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(clamp(2px, 0.5vw, 4px));
  box-shadow: var(--shadow-md);
  border-color: rgba(235, 53, 5, 0.3);
}

.info-icon {
  width: clamp(40px, 6vw, 56px);
  height: clamp(40px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(235, 53, 5, 0.1),
    rgba(212, 48, 4, 0.1)
  );
  border-radius: clamp(8px, 1.2vw, 10px);
  color: var(--primary-color);
  font-size: clamp(18px, 2.5vw, 24px);
  flex-shrink: 0;
}

.info-card h3 {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--secondary-color);
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.info-card p {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text-color);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contracts-section .container {
    max-width: 100%;
    padding: 0;
  }

  .report-container {
    max-width: 100%;
    padding: 0;
  }

  .report-header {
    margin-bottom: clamp(24px, 5vw, 40px);
  }

  .report-header h2 {
    font-size: clamp(22px, 5vw, 32px);
  }

  .report-header p {
    font-size: clamp(12px, 2.2vw, 14px);
  }

  .report-content {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
  }

  .report-form-wrapper {
    padding: clamp(16px, 2.5vw, 24px);
  }

  .report-form {
    gap: clamp(12px, 2vw, 16px);
  }

  .report-info {
    gap: clamp(12px, 2vw, 16px);
  }

  .info-card {
    padding: clamp(16px, 2.5vw, 20px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: clamp(12px, 2.5vw, 16px);
  }

  .footer-right {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contracts-section .container {
    max-width: 100%;
    padding: 0;
  }

  .report-section {
    padding: clamp(30px, 5vw, 40px) clamp(16px, 3vw, 20px);
    margin-top: 0;
  }

  .report-container {
    max-width: 100%;
    padding: 0;
  }

  .report-header {
    margin-bottom: clamp(24px, 5vw, 40px);
  }

  .report-header h2 {
    font-size: clamp(22px, 5vw, 32px);
  }

  .report-header p {
    font-size: clamp(12px, 2.2vw, 14px);
  }

  .report-content {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
  }

  .report-form-wrapper {
    padding: clamp(16px, 2.5vw, 24px);
  }

  .report-form {
    gap: clamp(12px, 2vw, 16px);
  }

  .report-form label {
    font-size: clamp(11px, 1.4vw, 13px);
  }

  .report-form input,
  .report-form textarea,
  .report-form select {
    padding: clamp(9px, 1.4vw, 11px) clamp(10px, 1.8vw, 14px);
    font-size: clamp(11px, 1.3vw, 13px);
  }

  .btn-submit-report {
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px);
    font-size: clamp(11px, 1.3vw, 13px);
    gap: clamp(5px, 0.8vw, 6px);
  }

  .info-card {
    padding: clamp(14px, 2.5vw, 18px);
    gap: clamp(10px, 2vw, 16px);
  }
}

@media (max-width: 480px) {
  .contracts-section .container {
    max-width: 100%;
    padding: 0;
  }

  .report-section {
    padding: clamp(24px, 4vw, 32px) clamp(16px, 2.5vw, 20px);
    margin-top: 0;
  }

  .report-container {
    max-width: 100%;
    padding: 0;
  }

  .report-header {
    margin-bottom: clamp(20px, 4vw, 32px);
  }

  .report-header h2 {
    font-size: clamp(20px, 4.5vw, 28px);
  }

  .report-header p {
    font-size: clamp(11px, 1.6vw, 13px);
  }

  .report-form-wrapper {
    padding: clamp(14px, 2vw, 18px);
  }

  .report-form {
    gap: clamp(10px, 1.8vw, 14px);
  }

  .report-form label {
    font-size: clamp(10px, 1.3vw, 12px);
  }

  .required {
    font-size: clamp(12px, 1.3vw, 14px);
  }

  .report-form input,
  .report-form textarea,
  .report-form select {
    padding: clamp(8px, 1.2vw, 10px) clamp(10px, 1.5vw, 12px);
    font-size: clamp(10px, 1.2vw, 12px);
    border-radius: clamp(5px, 0.8vw, 6px);
  }

  .report-form textarea {
    min-height: clamp(80px, 12vw, 120px);
  }

  .btn-submit-report {
    padding: clamp(9px, 1.3vw, 11px) clamp(14px, 2vw, 18px);
    font-size: clamp(10px, 1.2vw, 12px);
    gap: clamp(4px, 0.6vw, 5px);
  }

  .btn-submit-report i {
    font-size: clamp(9px, 1.2vw, 11px);
  }

  .info-card {
    padding: clamp(12px, 2vw, 16px);
    gap: clamp(8px, 1.5vw, 12px);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-icon {
    width: clamp(32px, 4.5vw, 40px);
    height: clamp(32px, 4.5vw, 40px);
    font-size: clamp(14px, 1.8vw, 18px);
    align-self: center;
  }

  .info-card h3 {
    font-size: clamp(11px, 1.5vw, 13px);
  }

  .info-card p {
    font-size: clamp(10px, 1.2vw, 12px);
  }

  .footer {
    padding: clamp(16px, 2.5vw, 20px) clamp(10px, 2vw, 12px);
  }

  .footer-content {
    gap: clamp(10px, 2vw, 12px);
  }

  .footer-left p {
    font-size: clamp(9px, 1.2vw, 11px);
    text-align: center;
  }

  .footer-right {
    width: 100%;
    gap: clamp(8px, 1.5vw, 12px);
  }

  .footer-link {
    font-size: clamp(9px, 1.2vw, 11px);
    padding: clamp(4px, 0.6vw, 6px) 0;
  }
}

@media (max-width: 360px) {
  /* Ultra small screens */
  body {
    font-size: 12px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-description {
    font-size: 10px;
  }

  .section-title {
    font-size: 15px;
  }

  .section-subtitle {
    font-size: 9px;
  }

  .btn-download {
    font-size: 10px;
    padding: 8px 12px;
  }

  .filter-label {
    font-size: 9px;
  }

  .search-input,
  .filter-select,
  .btn-clear {
    font-size: 10px;
    height: 38px;
  }

  .contracts-table thead th {
    font-size: 8px;
    padding: 8px 5px;
  }

  .contracts-table tbody td {
    font-size: 9px;
    padding: 7px 5px;
  }

  /* Compact pagination for ultra small screens */
  .pagination-wrapper {
    padding: 10px;
    gap: 8px;
  }

  .entries-select {
    font-size: 10px;
  }

  .entries-select select {
    font-size: 10px;
    padding: 4px 6px;
    width: 60px;
  }

  .pagination-controls button {
    min-width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .page-info {
    font-size: 10px;
  }

  .entries-info {
    font-size: 9px;
  }
}

/* iPad Air (820x1180), iPad Pro (1024x1366), Surface Pro 7 (912x1368) - Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* Filters specific layout for tablets in portrait */
  .filters-card {
    padding: clamp(16px, 2.5vw, 20px);
  }

  .filters-card .row {
    display: flex !important;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 14px);
    row-gap: clamp(12px, 2vw, 14px);
  }

  /* Search bar - full width on first row */
  .filters-card .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Status and Region - side by side on second row */
  .filters-card .row > div:nth-child(2),
  .filters-card .row > div:nth-child(3) {
    flex: 1 1 calc(50% - 7px);
    max-width: calc(50% - 7px);
  }

  /* Implementing Office and Clear Filters - side by side on third row */
  .filters-card .row > div:nth-child(4),
  .filters-card .row > div:nth-child(5) {
    flex: 1 1 calc(50% - 7px);
    max-width: calc(50% - 7px);
  }

  /* Filter elements styling */
  .filter-label {
    font-size: clamp(11px, 1.4vw, 12px);
    margin-bottom: clamp(6px, 0.8vw, 7px);
    font-weight: 600;
    display: block;
  }

  .filter-select,
  .btn-clear {
    height: clamp(42px, 5vw, 46px);
    font-size: clamp(12px, 1.5vw, 13px);
    width: 100%;
    display: block;
  }

  .search-input {
    height: clamp(42px, 5vw, 46px);
    font-size: clamp(12px, 1.5vw, 13px);
    width: 100%;
  }

  .search-icon {
    font-size: clamp(12px, 1.4vw, 13px);
  }

  .btn-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 8px);
  }

  .btn-clear i {
    font-size: clamp(11px, 1.3vw, 12px);
  }
}

/* iPad Air specific fine-tuning (820x1180) */
@media (min-width: 820px) and (max-width: 820px) and (min-height: 1180px) and (max-height: 1180px) and (orientation: portrait) {
  .filters-card {
    padding: 18px;
  }

  .filters-card .row {
    gap: 12px;
    row-gap: 12px;
  }

  .filter-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .filter-select,
  .btn-clear,
  .search-input {
    height: 44px;
    font-size: 12px;
  }
}

/* iPad Pro specific fine-tuning (1024x1366) */
@media (min-width: 1024px) and (max-width: 1024px) and (min-height: 1366px) and (max-height: 1366px) and (orientation: portrait) {
  .filters-card {
    padding: 20px;
  }

  .filters-card .row {
    gap: 14px;
    row-gap: 14px;
  }

  .filter-label {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .filter-select,
  .btn-clear,
  .search-input {
    height: 46px;
    font-size: 13px;
  }
}

/* Surface Pro 7 specific fine-tuning (912x1368) */
@media (min-width: 912px) and (max-width: 912px) and (min-height: 1368px) and (max-height: 1368px) and (orientation: portrait) {
  .filters-card {
    padding: 19px;
  }

  .filters-card .row {
    gap: 13px;
    row-gap: 13px;
  }

  .filter-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .filter-select,
  .btn-clear,
  .search-input {
    height: 45px;
    font-size: 12px;
  }
}

/* General tablet portrait enhancement (covers all similar devices) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .contracts-section {
    padding: clamp(32px, 5vw, 45px) clamp(16px, 3vw, 20px);
  }

  .section-header {
    margin-bottom: clamp(20px, 3vw, 28px);
  }

  .filters-card {
    margin-bottom: clamp(16px, 2.5vw, 20px);
    border-radius: clamp(10px, 1.2vw, 12px);
  }

  /* Ensure proper spacing and alignment */
  .search-wrapper {
    position: relative;
    width: 100%;
  }

  /* Table adjustments */
  .table-card {
    margin: 0 -6px;
  }

  /* Improve button text visibility */
  .btn-clear {
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-clear:hover {
    background: #e2e8f0;
  }

  /* Improve focus states for accessibility */
  .filter-select:focus,
  .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(235, 53, 5, 0.15);
  }
}

/* ============================================
   Premium Statistics & Charts Section
   ============================================ */

.statistics-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: clamp(30px, 4vw, 50px) 0;
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.statistics-header {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 30px);
  animation: fadeInUp 0.6s ease;
}

.statistics-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.statistics-title i {
  color: var(--primary-color);
  font-size: clamp(18px, 2.2vw, 24px);
}

.statistics-subtitle {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: 20px;
}

.chart-wrapper {
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
}

.chart-wrapper:nth-child(1) {
  animation-delay: 0.1s;
}

.chart-wrapper:nth-child(2) {
  animation-delay: 0.2s;
}

.chart-wrapper:nth-child(3) {
  animation-delay: 0.3s;
}

.chart-wrapper.chart-full-width {
  grid-column: span 1;
}

.premium-card {
  background: var(--white);
  border-radius: 10px;
  padding: clamp(12px, 1.5vw, 16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(235, 53, 5, 0.2);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.chart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.chart-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chart-icon.status-icon {
  background: var(--gradient-primary);
}

.chart-icon.region-icon {
  background: var(--gradient-info);
}

.chart-icon.cost-icon {
  background: var(--gradient-success);
}

.chart-title-group {
  flex: 1;
}

.chart-title {
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.chart-subtitle {
  font-size: clamp(10px, 1.1vw, 11px);
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
  font-weight: 500;
}

.chart-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(140px, 18vw, 180px);
  padding: clamp(10px, 1.5vw, 14px);
  border-radius: clamp(12px, 1.4vw, 16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.9),
      rgba(248, 250, 252, 0.95)
    ),
    linear-gradient(135deg, rgba(238, 242, 255, 0.8), rgba(241, 245, 249, 0.9));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 8px 20px rgba(15, 23, 42, 0.05);
}

.chart-container canvas {
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: clamp(10px, 1.2vw, 14px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .statistics-section {
    padding: clamp(20px, 2.5vw, 28px) 0;
  }

  .statistics-header {
    margin-bottom: clamp(12px, 2vw, 16px);
  }

  .statistics-title {
    font-size: clamp(18px, 2.2vw, 22px);
    margin-bottom: 6px;
  }

  .statistics-title i {
    font-size: clamp(16px, 2vw, 20px);
  }

  .statistics-subtitle {
    font-size: clamp(11px, 1.3vw, 12px);
  }

  .charts-grid {
    grid-template-columns: 1fr;
    gap: clamp(10px, 1.5vw, 12px);
    margin-top: 12px;
  }

  .premium-card {
    padding: clamp(8px, 1.2vw, 12px);
    border-radius: 8px;
  }

  .chart-header {
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    flex-wrap: wrap;
  }

  .chart-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .chart-title {
    font-size: clamp(10px, 1.1vw, 12px);
    margin: 0 0 1px 0;
  }

  .chart-subtitle {
    font-size: clamp(8px, 0.9vw, 9px);
  }

  .chart-container {
    min-height: clamp(120px, 30vw, 140px);
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .statistics-section {
    padding: clamp(16px, 2vw, 24px) 0;
  }

  .statistics-header {
    margin-bottom: clamp(10px, 1.5vw, 14px);
  }

  .statistics-title {
    font-size: clamp(16px, 2vw, 20px);
  }

  .charts-grid {
    gap: clamp(8px, 1.2vw, 10px);
    margin-top: 10px;
  }

  .premium-card {
    padding: clamp(6px, 1vw, 10px);
  }

  .chart-header {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }

  .chart-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .chart-title {
    font-size: clamp(9px, 1vw, 11px);
  }

  .chart-subtitle {
    font-size: clamp(7px, 0.8vw, 8px);
  }

  .chart-container {
    min-height: clamp(100px, 28vw, 120px);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.5vw, 14px);
  }

  .chart-header {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .chart-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .chart-container {
    min-height: clamp(150px, 20vw, 170px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.8vw, 16px);
  }

  .chart-container {
    min-height: clamp(160px, 19vw, 180px);
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 18px);
  }

  .chart-container {
    min-height: clamp(170px, 20vw, 190px);
  }
}

@media (min-width: 1200px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.2vw, 20px);
  }

  .chart-container {
    min-height: clamp(180px, 21vw, 200px);
  }
}

/* iPad and Tablet specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .statistics-section {
    padding: clamp(28px, 3.5vw, 40px) 0;
  }

  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.8vw, 16px);
  }

  .chart-container {
    min-height: clamp(160px, 22vw, 180px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.8vw, 16px);
  }

  .chart-container {
    min-height: clamp(150px, 18vw, 170px);
  }
}

/* iOS Safari specific */
@supports (-webkit-touch-callout: none) {
  .chart-container {
    min-height: clamp(140px, 18vw, 180px);
  }

  @media (max-width: 480px) {
    .chart-container {
      min-height: clamp(120px, 30vw, 140px);
    }
  }

  @media (max-width: 360px) {
    .chart-container {
      min-height: clamp(100px, 28vw, 120px);
    }
  }
}
