@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kokila:wght@400;600;700&display=swap");

/* Enhanced CSS reset and base styles with modern design system */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #667eea;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Poppins", sans-serif;
  background: #ffe3d9;
  background-attachment: fixed;
  min-height: 100vh;
  color: #333;
  font-size: 20px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px;
}

/* Professional header with clean layout and proper responsive design */
.main-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 107, 53, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
}

/* Left side - Brand section */
.header-brand {
  flex: 1;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo,
.trust-logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.brand-logo:hover,
.trust-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.3);
}

.brand-text {
  text-align: center;
  margin: 0 15px;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 600;
  margin: 5px 0 0 0;
}

/* Right side - Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop Navigation */
.desktop-navigation {
  display: flex;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
  left: 0;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* User Profile Section */
.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 10px 12px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  font-weight: 600;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.user-role {
  font-size: 0.85rem;
  opacity: 0.9;
}

.logout-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.toggle-line {
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Improved mobile menu without duplication */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  transition: left 0.3s ease;
  visibility: hidden;
}

.mobile-menu.active {
  left: 0;
  visibility: visible;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.1);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-user i {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-username {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.mobile-role {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
}

.mobile-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.mobile-navigation {
  padding: 20px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.mobile-nav-item.logout-item {
  margin-top: 20px;
  border-top: 2px solid rgba(255, 107, 53, 0.1);
  color: #dc3545;
}

.mobile-nav-item.logout-item:hover {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #dc3545;
}

/* Enhanced main content area with better spacing */
.main-content {
  padding: 20px;
  min-height: calc(100vh - 200px);
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 50px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Enhanced form styling with better visual hierarchy */
.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
  font-size: 1.3rem;
  font-family: "Kokila", serif;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: white;
}

/* Enhanced button styles with modern gradients and animations */
.btn {
  padding: 20px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  transition: var(--transition);
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #fd7e14 100%);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color) 0%, #6f42c1 100%);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(23, 162, 184, 0.4);
}

/* Enhanced statistics grid with modern card design */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  padding: 45px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 1.4rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced table styling with modern design */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.table th,
.table td {
  padding: 22px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
}

.table th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table tr:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
  transform: scale(1.01);
  transition: var(--transition);
}

/* Enhanced alert styling with modern design */
.alert {
  padding: 25px 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 5px solid;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.alert-success {
  background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(195, 230, 203, 0.9) 100%);
  color: #155724;
  border-left-color: var(--success-color);
}

.alert-error {
  background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(245, 198, 203, 0.9) 100%);
  color: #721c24;
  border-left-color: var(--danger-color);
}

/* Enhanced form layout and file upload styling */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 25px 25px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
  border: 3px dashed #dee2e6;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.file-upload:hover .file-upload-label {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(255, 245, 242, 0.9) 0%, rgba(255, 232, 225, 0.9) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.image-preview {
  position: relative;
  display: inline-block;
  margin-top: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.image-preview img {
  max-width: 250px;
  max-height: 250px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.image-preview:hover .preview-overlay {
  opacity: 1;
}

.preview-overlay i {
  color: white;
  font-size: 2rem;
}

/* Enhanced login page styling */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  padding: 35px;
  border-radius: 25px;
  box-shadow: var(--shadow-heavy);
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

/* Enhanced footer with professional styling */
.footer {
  background: linear-gradient(135deg, rgba(52, 58, 64, 0.95) 0%, rgba(33, 37, 41, 0.95) 100%);
  backdrop-filter: blur(20px);
  color: white;
  padding: 50px 0 20px;
  /* margin-top: 60px; */
  border-top: 4px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p,
.footer-section li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.status-online {
  color: var(--success-color);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  color: #aaa;
}

/* Enhanced responsive design with better breakpoints */
@media (max-width: 1200px) {
  .container {
    padding: 20px;
  }

  .brand-title {
    font-size: 2.4rem;
  }

  .header-right {
    gap: 20px;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 10px 16px;
  }

  .header-container {
    padding: 0 20px;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .nav-item {
    font-size: 1rem;
    padding: 10px 14px;
  }

  .user-profile {
    padding: 10px 16px;
  }
}

@media (min-width: 1200px) {
  .header-container {
    max-width: 1600px;
    padding: 0 40px;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .brand-subtitle {
    font-size: 1.2rem;
  }

  .nav-item {
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  .user-profile {
    padding: 12px 20px;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  .header-container {
    padding: 0 25px;
  }

  .brand-title {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 1.1rem;
  }

  .nav-item {
    font-size: 1rem;
    padding: 12px 16px;
  }
}

@media (max-width: 992px) {
  .header-wrapper {
    flex-wrap: wrap;
  }

  .header-left {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }

  .logo-group {
    justify-content: center;
  }

  .header-right {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .user-info {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .desktop-navigation {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .user-profile {
    padding: 8px 12px;
    gap: 10px;
  }

  .user-details {
    display: none;
  }

  .brand-title {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .header-logo {
    width: 60px;
    height: 60px;
  }

  .logo-group {
    gap: 15px;
  }

  .user-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .user-welcome {
    font-size: 0.95rem;
  }

  .logout-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .stat-number {
    font-size: 3.8rem;
  }

  .stat-label {
    font-size: 1.3rem;
  }

  .card {
    padding: 35px;
  }

  .login-card {
    padding: 25px;
    max-width: 100%;
  }

  .header-container {
    padding: 0 15px;
    min-height: 80px;
  }

  .brand-logo,
  .trust-logo {
    width: 55px;
    height: 55px;
  }

  .logo-container {
    gap: 15px;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }

  .user-profile {
    padding: 6px 10px;
    display: none;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .logout-button {
    width: 30px;
    height: 30px;
  }

  .mobile-menu-content {
    width: 280px;
  }

  .login-header h2 {
    font-size: 2rem;
  }

  .login-header p {
    font-size: 1.1rem;
  }

  .form-control {
    padding: 10px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 576px) {
  body {
    font-size: 16px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
  }

  .header-logo {
    width: 50px;
    height: 50px;
  }

  .logo-group {
    gap: 10px;
  }

  .header-right {
    gap: 15px;
  }

  .user-info {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .mobile-nav-link {
    font-size: 1.1rem;
    padding: 12px 16px;
  }

  .stat-number {
    font-size: 3.2rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }

  .btn {
    padding: 16px 30px;
    font-size: 1.1rem;
  }

  .form-control {
    padding: 16px 20px;
    font-size: 1.1rem;
  }

  .table th,
  .table td {
    padding: 15px 12px;
    font-size: 1rem;
  }

  .header-container {
    padding: 0 10px;
    min-height: 70px;
  }

  .brand-logo,
  .trust-logo {
    width: 45px;
    height: 45px;
  }

  .logo-container {
    gap: 10px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    font-size: 0.85rem;
  }

  .header-nav {
    gap: 15px;
  }

  .mobile-menu-content {
    width: 100%;
  }

  .mobile-nav-item {
    font-size: 1.1rem;
    padding: 15px 18px;
  }
}

/* Enhanced utility classes and animations */
.text-center {
  text-align: center;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.shadow-lg {
  box-shadow: var(--shadow-heavy);
}
.rounded-lg {
  border-radius: var(--border-radius);
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shake {
  animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Enhanced modal and notification styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  margin: 5% auto;
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 20px 25px;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-heavy);
  z-index: 3000;
  transform: translateX(400px);
  transition: var(--transition);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.notification-error {
  background: linear-gradient(135deg, var(--danger-color) 0%, #fd7e14 100%);
}

.notification-info {
  background: linear-gradient(135deg, var(--info-color) 0%, #6f42c1 100%);
}

/* Enhanced print styles */
@media print {
  body {
    background: white !important;
    font-size: 12pt;
    color: black;
  }

  .nav,
  .btn,
  .main-header,
  .footer {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    background: white !important;
  }

  .main-content {
    padding: 0;
  }
}

/* Enhanced QR scanner styles */
.qr-scanner {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-medium);
}

#qr-reader {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

/* Added public header styles for user-facing pages */
.public-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid rgba(255, 107, 53, 0.2);
  padding: 25px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.public-header .header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.public-header .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.public-header .logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
  transition: all 0.3s ease;
}

.public-header .logo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

.public-header .system-title {
  text-align: center;
  margin: 0 20px;
}

.public-header .system-title h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.public-header .system-title p {
  font-size: 1.4rem;
  color: #666;
  font-weight: 600;
  margin: 0;
}

/* Added form container styles for user applications */
.form-container {
  max-width: 1000px;
  margin: 40px auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.form-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 15px 0;
}

.form-header p {
  font-size: 1.3rem;
  color: #666;
  font-weight: 500;
  margin: 0;
}

/* Added status container styles for application status page */
.status-container {
  max-width: 900px;
  margin: 40px auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.status-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.application-id {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
  background: rgba(255, 107, 53, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  display: inline-block;
}

.status-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

.status-pending {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #333;
}

.status-approved {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.status-rejected {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.application-details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.1);
  padding-bottom: 10px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  font-size: 1.1rem;
}

.detail-item strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Added timeline styles for application progress */
.timeline {
  margin: 30px 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 35px;
  width: 2px;
  height: 40px;
  background: #ddd;
}

.timeline-item.completed::after {
  background: var(--primary-color);
}

.timeline-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ddd;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
  background: var(--primary-color);
}

.timeline-item.pending .timeline-marker {
  background: #ffc107;
  color: #333;
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #333;
}

.timeline-content p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Added section styles for approved/rejected states */
.approved-section,
.rejected-section,
.pending-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  margin-top: 25px;
  border-left: 6px solid;
}

.approved-section {
  border-left-color: #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
}

.rejected-section {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(200, 35, 51, 0.05) 100%);
}

.pending-section {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 179, 0, 0.05) 100%);
}

.approved-section h3,
.rejected-section h3,
.pending-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.id-card-info {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.id-card-info p {
  font-size: 1.1rem;
  margin: 8px 0;
  font-weight: 600;
}

.download-section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 0 15px 0;
  color: #333;
}

.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.remarks {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px 20px;
  border-radius: 10px;
  margin: 15px 0;
  font-size: 1.1rem;
  border-left: 4px solid #dc3545;
}

/* Added status form styles */
.status-form {
  background: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.status-form .form-group {
  margin-bottom: 20px;
}

.status-form label {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.status-form input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.status-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Enhanced responsive design for public pages */
@media (max-width: 768px) {
  .public-header .logo-section {
    gap: 15px;
  }

  .public-header .logo {
    width: 60px;
    height: 60px;
  }

  .public-header .system-title h1 {
    font-size: 2rem;
  }

  .public-header .system-title p {
    font-size: 1.1rem;
  }

  .form-container,
  .status-container {
    margin: 20px;
    padding: 30px 25px;
  }

  .form-header h2 {
    font-size: 2rem;
  }

  .status-header h2 {
    font-size: 1.8rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .timeline-marker {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .public-header {
    padding: 15px 0;
  }

  .public-header .header-content {
    padding: 0 15px;
  }

  .public-header .logo-section {
    flex-direction: column;
    gap: 15px;
  }

  .public-header .system-title {
    margin: 0;
  }

  .public-header .system-title h1 {
    font-size: 1.6rem;
  }

  .public-header .system-title p {
    font-size: 1rem;
  }

  .form-container,
  .status-container {
    margin: 15px;
    padding: 25px 20px;
  }

  .status-card {
    padding: 25px 20px;
  }

  .approved-section,
  .rejected-section,
  .pending-section {
    padding: 20px;
  }
}
