:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  --darker: #0f172a;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== IMPROVED HEADER STYLES ===== */
.header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  gap: 2rem;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-image {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo:hover .logo-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles - FIXED COLOR ISSUE */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white !important;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link,
.nav-link * {
  color: white !important;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-link i {
  font-size: 1.1rem;
  color: white;
}

.nav-link span {
  color: white;
  font-weight: 500;
}

/* User Menu Styles */
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.user-info:hover .avatar {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.9;
  color: white;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle i {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  box-shadow: var(--shadow-xl);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  padding: 15px 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
}

.mobile-nav-link i {
  color: white;
  width: 20px;
  text-align: center;
}

.mobile-nav-link span {
  color: white;
}

/* Mobile User Info Styles */
.mobile-user-info {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  margin: 1rem 0;
}

.mobile-user-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.mobile-user-text {
  flex: 1;
}

.mobile-user-name {
  font-weight: 600;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.25rem;
}

.mobile-user-role {
  font-size: 0.85rem;
  opacity: 0.9;
  color: white;
}

/* Mobile Logout Button */
.mobile-logout {
  background: rgba(239, 68, 68, 0.2) !important;
  border-left: 4px solid #ef4444 !important;
  color: #fecaca !important;
}

.mobile-logout:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

.mobile-logout i {
  color: #fecaca !important;
}

/* ===== CRITICAL MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
    height: 70px;
    gap: 1rem;
  }

  /* Hide desktop navigation and user details */
  .main-nav {
    display: none !important;
  }

  .user-details {
    display: none;
  }

  .user-menu .user-info {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Logo adjustments */
  .logo h1 {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  /* User menu adjustments */
  .user-menu {
    gap: 0.5rem;
  }

  .avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .logout-btn {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 0.75rem;
    height: 60px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .logo-image {
    width: 35px;
    height: 35px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .mobile-nav-link {
    padding: 12px 1.5rem;
    font-size: 0.9rem;
  }

  .mobile-user-details {
    padding: 1rem;
  }

  .mobile-user-avatar {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .mobile-user-name {
    font-size: 0.9rem;
  }

  .mobile-user-role {
    font-size: 0.8rem;
  }
}

/* Ensure desktop menu stays visible on larger screens */
@media (min-width: 769px) {
  .user-menu {
    display: flex !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
  }

  .mobile-user-info {
    display: none !important;
  }
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ===== ENHANCED MAIN CONTENT ===== */
.dashboard-container {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  animation: fadeInUp 0.6s ease;
}

/* Enhanced Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.menu-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.menu-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.menu-card:hover .menu-icon {
  transform: scale(1.1) rotate(5deg);
}

.menu-card:nth-child(1) .menu-icon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.menu-card:nth-child(2) .menu-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.menu-card:nth-child(3) .menu-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.menu-card:nth-child(4) .menu-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
  line-height: 1.3;
}

.menu-content p {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.menu-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--gray);
  transition: var(--transition);
  font-size: 1.2rem;
}

.menu-card:hover .menu-arrow {
  color: var(--primary);
  transform: translateX(5px);
}

/* Enhanced Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.recent-inspections,
.quick-actions {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
}

.recent-inspections h2,
.quick-actions h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.recent-inspections h2::after,
.quick-actions h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 2px;
}

/* Enhanced Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: white;
}

.inspections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}

.inspections-table th,
.inspections-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.inspections-table th {
  font-weight: 600;
  color: var(--secondary);
  background: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.inspections-table th:first-child {
  width: 60px;
  text-align: center;
}

.inspections-table td:first-child {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.inspections-table tr {
  transition: var(--transition);
}

.inspections-table tr:not(:last-child) {
  border-bottom: 1px solid var(--gray-light);
}

.inspections-table tr:hover {
  background-color: #f8fafc;
  transform: translateX(4px);
}

.inspections-table tr:hover td:first-child {
  background: rgba(37, 99, 235, 0.1);
}

/* Status Badge Styles */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  text-align: center;
}

.status-badge.completed {
  background-color: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.status-badge.pending {
  background-color: #fef3c7;
  color: var(--warning);
  border: 1px solid #fde68a;
}

.status-badge.critical {
  background-color: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Zebra striping for better readability */
.inspections-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.inspections-table tbody tr:nth-child(even):hover {
  background-color: #f1f5f9;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
  .inspections-table {
    font-size: 0.9rem;
    min-width: 500px;
  }

  .inspections-table th,
  .inspections-table td {
    padding: 0.75rem 0.5rem;
  }

  .inspections-table th:first-child {
    width: 50px;
  }

  .status-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .table-container {
    margin: 0 -0.5rem;
    border-radius: 0;
  }

  .inspections-table {
    min-width: 400px;
    font-size: 0.85rem;
  }

  .inspections-table th,
  .inspections-table td {
    padding: 0.6rem 0.4rem;
  }
}

/* Enhanced Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.info-card-content {
  flex: 1;
}

.info-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
}

.info-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .header-content {
    padding: 0 1.5rem;
  }

  .dashboard-container {
    padding: 0 1.5rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .main-nav {
    order: 3;
    flex: 1 1 100%;
    margin-top: 1rem;
  }

  .nav-menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .user-details {
    display: none;
  }

  .dashboard-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .menu-card {
    flex-direction: row;
    text-align: left;
    min-height: 120px;
    padding: 1.5rem;
  }

  .menu-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }

  .menu-content {
    text-align: left;
    flex: 1;
  }

  .menu-arrow {
    position: static;
    margin-left: auto;
    align-self: center;
  }

  .recent-inspections,
  .quick-actions {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.75rem;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 35px;
    height: 35px;
  }

  .avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .dashboard-container {
    padding: 0 0.75rem;
  }

  .menu-card {
    flex-direction: column;
    text-align: center;
    min-height: 140px;
    padding: 1.5rem;
  }

  .menu-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .menu-content {
    text-align: center;
  }

  .menu-arrow {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ===== ENHANCED FOOTER STYLES ===== */
.footer {
  background: linear-gradient(135deg, var(--darker), #1a1f36);
  color: white;
  margin-top: auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-logo-image {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: var(--shadow);
}

.footer-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-description {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a i {
  width: 16px;
  text-align: center;
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Footer Watermark */
.footer-watermark {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.watermark-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.watermark-content i {
  color: var(--primary-light);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.whatsapp-tooltip {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
  position: relative;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: #128c7e transparent transparent transparent;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.whatsapp-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--transition);
}

.whatsapp-link:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-link:hover::before {
  opacity: 1;
}

.whatsapp-link i {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

/* Pulsing Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* WhatsApp button animation */
.whatsapp-link {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== STICKY FOOTER FIX ===== */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-container,
.form-container {
  flex: 1 0 auto;
  width: 100%;
}

.footer {
  flex-shrink: 0;
}

/* ===== RESPONSIVE FOOTER & WHATSAPP ===== */
@media (max-width: 968px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-link {
    width: 55px;
    height: 55px;
  }

  .whatsapp-link i {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-links-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links a:hover {
    transform: translateX(3px);
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-link {
    width: 50px;
    height: 50px;
  }

  .whatsapp-link i {
    font-size: 1.5rem;
  }

  .whatsapp-tooltip {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-main {
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.3rem;
  }

  .footer-logo-image {
    width: 40px;
    height: 40px;
  }

  .whatsapp-float {
    bottom: 10px;
    right: 10px;
  }

  .whatsapp-link {
    width: 45px;
    height: 45px;
  }

  .whatsapp-link i {
    font-size: 1.3rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.p-0 {
  padding: 0;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .whatsapp-float {
    display: none;
  }

  body {
    background: white;
  }

  .dashboard-container {
    margin: 0;
    padding: 0;
  }
}

/* User Location Card */
.user-location-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.user-location-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.user-welcome,
.location-info {
  position: relative;
  z-index: 1;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-avatar i {
  font-size: 4rem;
  opacity: 0.9;
}

.user-details h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.user-details p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.user-level {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.location-icon i {
  font-size: 2rem;
  opacity: 0.8;
}

.location-details h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.location-details p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.location-details small {
  opacity: 0.7;
  font-size: 0.8rem;
}

.refresh-location {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.refresh-location:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 968px) {
  .user-location-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .user-welcome {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .user-location-card {
    padding: 1.5rem;
  }

  .user-details h2 {
    font-size: 1.5rem;
  }

  .location-info {
    flex-direction: column;
    text-align: center;
  }

  .refresh-location {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Tambahkan di main.css */
.logout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.logout-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== DROPDOWN MENU STYLES ===== */

/* Desktop Dropdown Styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 2.5rem !important;
}

.dropdown-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
  border: 1px solid var(--gray-light);
  margin-top: 0.5rem;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid var(--gray-light);
  border-left: 1px solid var(--gray-light);
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.active .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  color: var(--dark) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
  font-weight: 500;
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover {
  background: var(--light);
  color: var(--primary) !important;
  padding-left: 1.75rem;
}

.dropdown-link i {
  color: var(--primary);
  width: 18px;
  font-size: 0.9rem;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-toggle {
  position: relative;
  padding-right: 3rem !important;
}

.mobile-dropdown-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: var(--transition);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
  transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem 1rem 3rem;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  font-size: 0.9rem;
}

.mobile-dropdown-link:last-child {
  border-bottom: none;
}

.mobile-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  padding-left: 3.25rem;
}

.mobile-dropdown-link i {
  color: rgba(255, 255, 255, 0.7);
  width: 16px;
  font-size: 0.8rem;
}

.mobile-dropdown-link:hover i {
  color: white;
}

/* Responsive Design untuk Dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-link {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding-left: 3rem;
  }

  .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
  }

  .dropdown-link i {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Smooth transitions */
.dropdown-menu,
.mobile-dropdown-menu,
.dropdown-arrow,
.mobile-dropdown-arrow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure proper z-index */
.nav-item.dropdown {
  z-index: 1001;
}

/* Hover effect untuk desktop */
@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item.dropdown:hover .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* Fix untuk mobile menu yang terbuka */
.mobile-nav.active .mobile-dropdown-menu {
  max-height: 0;
}

.mobile-nav.active .mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

/* Animation untuk dropdown */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  animation: slideDown 0.3s ease;
}

/* ===== ENHANCED DROPDOWN STYLES ===== */
.dropdown-link {
  position: relative;
  overflow: hidden;
}

.dropdown-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.dropdown-link:hover::before {
  transform: scaleY(1);
}

.mobile-dropdown-link::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.mobile-dropdown-link:hover::before {
  background: white;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-dropdown-link {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 0.85rem;
  }

  .mobile-dropdown-link::before {
    left: 1.25rem;
  }

  .mobile-dropdown-link:hover {
    padding-left: 2.75rem;
  }
}

/* PERBAIKAN CSS UNTUK MODAL DETAIL */

.sheet-detail-modal .swal2-popup {
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.sheet-detail-container {
  z-index: 10000;
}

.sheet-detail {
  max-width: 100%;
  font-size: 0.9rem;
}

.detail-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.detail-section h4 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.detail-item label {
  font-weight: 600;
  color: var(--secondary);
  margin: 0;
  font-size: 0.85rem;
}

.detail-item span {
  color: var(--dark);
  font-weight: 500;
  text-align: right;
}

.comment-box {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-style: italic;
  color: var(--secondary);
  line-height: 1.5;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: #f5f5f5;
}

.photo-item img:hover {
  transform: scale(1.05);
}

.photo-info {
  padding: 0.75rem;
  text-align: center;
  background: #f8fafc;
}

.photo-info small {
  font-size: 0.75rem;
  color: var(--secondary);
}

.text-muted {
  color: #6b7280 !important;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-table th,
.detail-table td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
}

.detail-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.detail-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.detail-table tr:hover {
  background-color: #f1f5f9;
}

.table-responsive {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 6px;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
  font-style: italic;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #fecaca;
}

/* Responsive design untuk modal */
@media (max-width: 768px) {
  .sheet-detail-modal .swal2-popup {
    width: 95% !important;
    margin: 1rem;
    padding: 1rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .detail-item span {
    text-align: left;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .detail-table {
    font-size: 0.7rem;
  }

  .detail-table th,
  .detail-table td {
    padding: 0.5rem 0.25rem;
  }
}

@media (max-width: 480px) {
  .sheet-detail-modal .swal2-popup {
    padding: 0.5rem;
  }

  .detail-section {
    padding: 1rem;
  }

  .photo-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tambahan CSS untuk summary grid di modal detail */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* CSS untuk Modal Custom */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  font-family: "Inter", sans-serif;
}

.custom-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.custom-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.custom-modal-header {
  display: flex;
  justify-content: between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
}

.custom-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.custom-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.custom-modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design untuk modal */
@media (max-width: 768px) {
  .custom-modal-content {
    width: 98%;
    max-width: 98%;
    margin: 1%;
  }

  .custom-modal-header {
    padding: 1rem 1.5rem;
  }

  .custom-modal-header h3 {
    font-size: 1.2rem;
  }
}

/* Additional styles for dashboard */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.info-card-content {
  flex: 1;
}

.info-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
}

.info-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 1rem;
  }

  .info-card i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .info-number {
    font-size: 1.5rem;
  }
}

/* Filter Controls Styles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
}

.section-header h2 {
  margin: 0;
  color: var(--dark);
  font-size: 1.4rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  margin: 0;
}

.filter-select,
.filter-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  background: white;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-input {
  min-width: 220px;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.reset {
  background: #6b7280;
}

.filter-btn.reset:hover {
  background: #4b5563;
}

.custom-date-range {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  gap: 1rem;
  align-items: center;
}

.custom-date-range .filter-input {
  min-width: 150px;
}

.table-info {
  margin-top: 1rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  padding: 0.5rem 0;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
  position: absolute;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 220px;
  font-size: 0.85rem;
}

.autocomplete-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
  background: var(--primary);
  color: white;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-group label {
    text-align: left;
  }

  .filter-input,
  .filter-select {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-header {
    padding: 1rem;
  }

  .custom-date-range {
    flex-direction: column;
    gap: 0.75rem;
  }

  .custom-date-range .filter-input {
    width: 100%;
  }

  .filter-controls {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 0.75rem;
  }

  .filter-group {
    padding: 0.75rem;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}

/* Enhanced Info Cards Styles - Simplified */
.quick-actions h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.quick-actions h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 2px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Card Variants */
.total-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  grid-column: 1 / -1;
}

.total-card .info-number {
  color: white;
  font-size: 2.5rem;
}

.total-card .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.igs-card {
  border-left: 4px solid #3b82f6;
}

.sr-card {
  border-left: 4px solid #10b981;
}

.jos-card {
  border-left: 4px solid #f59e0b;
}

.bcc-card {
  border-left: 4px solid #ef4444;
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.total-card .card-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.igs-card .card-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.sr-card .card-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.jos-card .card-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bcc-card .card-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.info-card-content {
  flex: 1;
}

.info-card-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
}

.total-card .info-card-content h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.info-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.total-card .info-number {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
  font-size: 2.8rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Summary Text */
.summary-text {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  margin-top: 1rem;
}

.summary-text p {
  margin: 0 0 0.75rem 0;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.summary-text i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.summary-text strong {
  color: var(--primary-dark);
}

.summary-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--dark);
}

.summary-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.summary-list strong {
  color: var(--primary);
}

.summary-list em {
  color: var(--secondary);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .total-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .info-number {
    font-size: 2rem;
  }

  .total-card .info-number {
    font-size: 2.4rem;
  }

  .summary-text p {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .info-number {
    font-size: 2.2rem;
  }

  .total-card .info-number {
    font-size: 2.5rem;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 40px;
  height: 40px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.pagination-btn.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-btn i {
  font-size: 0.8rem;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-jump-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-jump-form label {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  white-space: nowrap;
}

.page-input {
  width: 60px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
}

.page-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.jump-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.jump-btn:hover {
  background: var(--primary-dark);
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .pagination-info {
    order: 1;
  }

  .pagination-controls {
    order: 2;
  }

  .pagination-jump {
    order: 3;
  }

  .page-jump-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-jump-form label {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .page-input {
    width: 50px;
  }
}

/* Styling untuk tabel dashboard yang baru */
.level-badge {
  padding: 0.3rem 0.6rem;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  display: inline-block;
}

.category-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}

.category-activity {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.category-delay {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* Responsive table */
@media (max-width: 768px) {
  .inspections-table {
    font-size: 0.8rem;
  }

  .inspections-table th:nth-child(4),
  .inspections-table td:nth-child(4),
  .inspections-table th:nth-child(5),
  .inspections-table td:nth-child(5),
  .inspections-table th:nth-child(6),
  .inspections-table td:nth-child(6) {
    display: none;
  }
}

/* Meter Advance Section Styles */
.meter-advance-section {
  margin: 2rem 0;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.progress-dashboard {
  padding: 2rem;
  border-bottom: 1px solid var(--gray-light);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary-card.total-act {
  border-left-color: #10b981;
}
.summary-card.total-plan {
  border-left-color: #3b82f6;
}
.summary-card.total-var {
  border-left-color: #f59e0b;
}
.summary-card.progress-rate {
  border-left-color: #8b5cf6;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.total-act .card-icon {
  background: #10b981;
}
.total-plan .card-icon {
  background: #3b82f6;
}
.total-var .card-icon {
  background: #f59e0b;
}
.progress-rate .card-icon {
  background: #8b5cf6;
}

.card-content h3 {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.card-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.card-change.positive {
  color: #10b981;
}
.card-change.negative {
  color: #ef4444;
}

.chart-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chart-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 300px;
}

.data-section {
  padding: 2rem;
}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.heading-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.heading-summary h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Form Styles */
.form-section {
  padding: 2rem;
}

.form-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem 2rem;
}

.form-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.meter-advance-form {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.readonly-field {
  background-color: #f8fafc;
  color: var(--secondary);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.data-table th {
  background: var(--light);
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.number {
  text-align: right;
  font-family: "Courier New", monospace;
  font-weight: 600;
}

.variance.positive {
  color: #10b981;
  font-weight: 700;
}

.variance.negative {
  color: #ef4444;
  font-weight: 700;
}

.total-row {
  background-color: var(--light) !important;
  font-weight: 600;
}

.total-row td {
  border-top: 2px solid var(--gray);
}

.no-data {
  text-align: center;
  color: var(--secondary);
  font-style: italic;
  padding: 2rem !important;
}

.error {
  text-align: center;
  color: var(--danger);
  padding: 2rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .progress-dashboard,
  .data-section,
  .form-section {
    padding: 1rem;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .data-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .chart-controls {
    flex-direction: column;
  }
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-edit {
  background: #f59e0b;
  color: white;
}

.btn-delete {
  background: #ef4444;
  color: white;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: end;
}

/* Table Controls */
.table-controls {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.filter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.export-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-export {
  background: #8b5cf6;
  color: white;
}

.btn-export:hover {
  background: #7c3aed;
}

.actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

/* Autocomplete */
.autocomplete-suggestions {
  position: absolute;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-top: 2px;
}

.autocomplete-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.autocomplete-suggestion:hover {
  background: #3b82f6;
  color: white;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

/* Hilangkan margin bottom yang tidak perlu setelah menghapus filter */
.data-section .table-container {
  margin-top: 0;
}

/* Pastikan chart controls terlihat baik */
.chart-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: end;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
}

/* Chart Container */
.chart-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 400px;
  position: relative;
}

/* Chart Messages */
.chart-no-data,
.chart-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.chart-no-data .btn {
  margin-top: 1rem;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: end;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
}

.chart-controls .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-controls .filter-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.chart-controls .filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 150px;
}

.chart-controls .filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .chart-container {
    height: 350px;
    padding: 1rem;
  }

  .chart-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-controls .filter-select {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 300px;
  }
}

/* Progress Bars Styling */
.heading-progress-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.heading-progress-section h4 {
  margin: 0 0 1.5rem 0;
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
}

.heading-progress-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fafafa;
  transition: all 0.3s ease;
}

.heading-progress-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.heading-info {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
}

.heading-name {
  flex: 1;
}

.heading-name strong {
  display: block;
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.heading-location {
  font-size: 0.85rem;
  color: #6b7280;
}

.heading-stats {
  text-align: right;
}

.stat-actual {
  font-weight: 600;
  color: #10b981;
  font-size: 1.1rem;
}

.stat-plan {
  color: #6b7280;
  font-size: 0.9rem;
}

.stat-separator {
  color: #d1d5db;
  margin: 0 0.25rem;
}

.stat-variance {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.stat-variance.positive {
  color: #10b981;
}

.stat-variance.negative {
  color: #ef4444;
}

.progress-bars {
  margin-bottom: 1rem;
}

.progress-item {
  margin-bottom: 1rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.progress-percent {
  font-weight: 600;
  color: #1f2937;
}

.progress-bar-container {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.heading-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.no-progress-data,
.progress-error {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.no-progress-data i,
.progress-error i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.progress-error i {
  color: #ef4444;
}

/* Summary Cards Improvements */
.summary-card .card-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.card-change.warning {
  color: #f59e0b;
  background: #fef3c7;
}

/* Progress Bars Styling */
.heading-progress-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.heading-progress-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.heading-progress-section h4 {
  margin: 0;
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
}

.heading-filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.heading-filter-controls .filter-group {
  margin-bottom: 0;
}

.heading-progress-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fafafa;
  transition: all 0.3s ease;
}

.heading-progress-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.heading-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.heading-name {
  flex: 1;
}

.heading-name strong {
  display: block;
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.heading-location {
  font-size: 0.85rem;
  color: #6b7280;
}

.heading-stats {
  text-align: right;
}

.stat-actual {
  font-weight: 600;
  color: #10b981;
  font-size: 1.1rem;
}

.stat-plan {
  color: #6b7280;
  font-size: 0.9rem;
}

.stat-separator {
  color: #d1d5db;
  margin: 0 0.25rem;
}

.stat-variance {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.stat-variance.positive {
  color: #10b981;
}

.stat-variance.negative {
  color: #ef4444;
}

.progress-bars {
  margin-bottom: 1rem;
}

.progress-item {
  margin-bottom: 1rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.progress-percent {
  font-weight: 600;
  color: #1f2937;
}

.progress-bar-container {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.heading-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.loading-progress,
.no-progress-data,
.progress-error {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.loading-progress i,
.no-progress-data i,
.progress-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.loading-progress i {
  color: #3b82f6;
}

.no-progress-data i {
  color: #d1d5db;
}

.progress-error i {
  color: #ef4444;
}

/* Summary Cards Improvements */
.summary-card .card-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.card-change.warning {
  color: #f59e0b;
  background: #fef3c7;
}
