@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 !important;
}

.mobile-nav-item.logout-item:hover {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #dc3545 !important;
}

/* 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;
  }
}

/* Premium black-gold UI refresh. Presentation-only overrides. */
:root {
  --primary-color: #d6a83f;
  --secondary-color: #f7d57b;
  --accent-color: #b98925;
  --success-color: #2fa36b;
  --danger-color: #d94c4c;
  --warning-color: #e5b84f;
  --info-color: #4d8da8;
  --dark-color: #090807;
  --light-color: #f7f2e8;
  --white: #fffaf0;
  --ink: #0c0b09;
  --panel: rgba(18, 16, 12, 0.9);
  --panel-soft: rgba(28, 24, 17, 0.86);
  --panel-light: rgba(255, 248, 232, 0.94);
  --gold: #d6a83f;
  --gold-bright: #f6d77b;
  --gold-deep: #8f671a;
  --line-gold: rgba(214, 168, 63, 0.32);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text-main: #f8ecd0;
  --text-muted: #c9b78f;
  --text-dark: #201a0f;
  --shadow-light: 0 10px 28px rgba(0, 0, 0, 0.18);
  --shadow-medium: 0 18px 46px rgba(0, 0, 0, 0.26);
  --shadow-heavy: 0 28px 70px rgba(0, 0, 0, 0.38);
  --border-radius: 8px;
  --transition: all 0.22s ease;
}

html {
  background: #090807;
}

body {
  color: var(--text-main) !important;
  background:
    radial-gradient(circle at 18% -10%, rgba(246, 213, 123, 0.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(142, 103, 26, 0.18), transparent 28%),
    linear-gradient(135deg, #090807 0%, #14100a 44%, #050504 100%) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(246, 213, 123, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 213, 123, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 82%);
}

.container {
  max-width: 1240px !important;
  padding: 22px !important;
}

.main-content {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 36px !important;
}

.main-header,
.public-header {
  background: rgba(10, 9, 7, 0.9) !important;
  border-bottom: 1px solid var(--line-gold) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34) !important;
}

.main-header {
  backdrop-filter: blur(18px);
}

.header-container {
  max-width: 1320px !important;
  min-height: 76px !important;
  padding: 0 22px !important;
}

.logo-container {
  gap: 12px !important;
}

.brand-logo,
.trust-logo,
.public-header .logo {
  border: 2px solid rgba(246, 213, 123, 0.72) !important;
  background: #fff9ea !important;
  box-shadow: 0 0 0 5px rgba(214, 168, 63, 0.08), 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.brand-logo,
.trust-logo {
  width: 54px !important;
  height: 54px !important;
}

.public-header .logo {
  width: 68px !important;
  height: 68px !important;
}

.brand-title,
.public-header .system-title h1,
.form-header h2,
.status-header h2,
.login-header h2,
.page-header h1,
.card h1,
.card h2,
.card h3,
.status-container h2 {
  color: var(--gold-bright) !important;
  background: linear-gradient(135deg, #fff1b5 0%, #d6a83f 48%, #8f671a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: 0 !important;
}

.brand-subtitle,
.public-header .system-title p,
.page-header p,
.login-header p,
.form-header p {
  color: var(--text-muted) !important;
}

.public-header {
  padding: 20px 0 !important;
}

.public-header .logo-section {
  gap: 18px !important;
}

.public-header .system-title h1 {
  font-size: clamp(1.45rem, 3.4vw, 2.35rem) !important;
  line-height: 1.12 !important;
}

.public-header .system-title p {
  font-size: clamp(0.92rem, 2vw, 1.15rem) !important;
  line-height: 1.45 !important;
}

.nav-menu {
  gap: 6px !important;
}

.nav-item,
.mobile-nav-item {
  color: #f5e7c5 !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(246, 213, 123, 0.16) !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

.nav-item::before {
  background: linear-gradient(135deg, #d6a83f 0%, #8f671a 100%) !important;
}

.nav-item:hover,
.nav-item.active,
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #d6a83f 0%, #8f671a 100%) !important;
  border-color: rgba(246, 213, 123, 0.58) !important;
  box-shadow: 0 12px 26px rgba(214, 168, 63, 0.2) !important;
}

.user-profile,
.mobile-header {
  background: linear-gradient(135deg, #d6a83f 0%, #8f671a 100%) !important;
  color: #090807 !important;
  border: 1px solid rgba(255, 241, 181, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

.user-avatar,
.logout-button,
.mobile-close,
.mobile-user i {
  background: rgba(9, 8, 7, 0.15) !important;
  color: #090807 !important;
}

.toggle-line {
  background: var(--gold-bright) !important;
}

.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
}

.mobile-menu-content {
  background: linear-gradient(160deg, #0b0a08 0%, #1b160d 100%) !important;
  border-right: 1px solid var(--line-gold) !important;
}

.card,
.login-card,
.form-container,
.status-container,
.status-card,
.application-card,
.mobile-card,
.qr-scanner,
.status-form,
.approved-section,
.rejected-section,
.pending-section,
.id-card-info,
.remarks-section,
.info-item,
.detail-item,
.modal-content,
#qrModal > div,
#imageModal > div {
  color: var(--text-main) !important;
  background:
    linear-gradient(155deg, rgba(34, 29, 19, 0.94) 0%, rgba(12, 11, 9, 0.96) 100%) !important;
  border: 1px solid var(--line-gold) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-medium) !important;
}

.card,
.login-card,
.form-container,
.status-container {
  padding: clamp(22px, 3.2vw, 38px) !important;
  margin-bottom: 26px !important;
}

.card::before,
.login-card::before,
.form-container::before {
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, #f6d77b 35%, #8f671a 100%) !important;
}

.card:hover,
.stat-card:hover,
.application-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-heavy) !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.application-details h3,
.documents-section h5,
.remarks-section h5,
.timeline-content h4,
.download-section h4,
.modal-header h3,
.applicant-details h4,
.member-info h4,
.no-data h3,
.no-records h3 {
  color: var(--gold-bright) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.card h2,
.status-container h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem) !important;
}

.card h3,
.page-header h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem) !important;
}

p,
li,
small,
.footer-section p,
.footer-section li,
.applicant-details p,
.timeline-content p,
.info-row,
.pagination-info,
.results-summary p {
  color: var(--text-muted) !important;
}

strong,
.detail-item strong,
.info-item strong {
  color: #ffe6a1 !important;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 18px !important;
  margin-bottom: 28px !important;
}

.stat-card {
  text-align: left !important;
  padding: 24px !important;
  background:
    linear-gradient(145deg, rgba(33, 28, 18, 0.94), rgba(10, 9, 8, 0.96)) !important;
  border: 1px solid var(--line-gold) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-medium) !important;
}

.stat-card::before {
  height: 1px !important;
  background: linear-gradient(90deg, #f6d77b, transparent) !important;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.1rem) !important;
  line-height: 1 !important;
  margin-bottom: 10px !important;
  text-shadow: none !important;
}

.stat-label {
  color: var(--text-muted) !important;
  font-size: 0.86rem !important;
  letter-spacing: 0 !important;
}

.form-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  gap: 18px !important;
}

.form-group {
  margin-bottom: 18px !important;
}

.form-group label,
.status-form label,
.filter-group label,
.document-item label {
  color: #ffe6a1 !important;
  font-size: 0.96rem !important;
  font-family: "Poppins", "Kokila", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.form-control,
.status-form input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  color: #fff4d6 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(246, 213, 123, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-size: 0.98rem !important;
  padding: 12px 14px !important;
}

select option {
  color: #17120a !important;
  background: #fff7df !important;
}

.form-control:focus,
.status-form input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #f6d77b !important;
  box-shadow: 0 0 0 3px rgba(214, 168, 63, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.file-upload-label {
  color: #f8ecd0 !important;
  background:
    linear-gradient(145deg, rgba(246, 213, 123, 0.1), rgba(255, 255, 255, 0.035)) !important;
  border: 1px dashed rgba(246, 213, 123, 0.45) !important;
  border-radius: 8px !important;
  padding: 20px !important;
}

.file-upload:hover .file-upload-label {
  color: #090807 !important;
  background: linear-gradient(135deg, #f6d77b, #d6a83f) !important;
  border-color: #ffeeb7 !important;
}

.btn,
button,
input[type="submit"] {
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  padding: 11px 18px !important;
  text-transform: none !important;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24) !important;
}

.btn-primary,
.btn-success,
.status-approved,
.page-link.active {
  color: #090807 !important;
  background: linear-gradient(135deg, #f6d77b 0%, #d6a83f 54%, #9b6f1b 100%) !important;
  border-color: rgba(255, 238, 183, 0.55) !important;
}

.btn-info,
.btn-secondary,
.page-link {
  color: #f8ecd0 !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(246, 213, 123, 0.3) !important;
}

.btn-danger,
.status-rejected {
  color: #fff4e2 !important;
  background: linear-gradient(135deg, #b33434 0%, #6e1717 100%) !important;
  border-color: rgba(255, 180, 180, 0.3) !important;
}

.btn:hover,
button:hover {
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.05);
}

.alert {
  color: #f9efd4 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(246, 213, 123, 0.25) !important;
  border-left-width: 4px !important;
  border-radius: 8px !important;
  font-size: 0.98rem !important;
  padding: 16px 18px !important;
}

.alert-success {
  border-left-color: var(--success-color) !important;
}

.alert-error,
.alert-danger {
  border-left-color: var(--danger-color) !important;
}

.alert-warning,
.status-pending {
  color: #1d1607 !important;
  background: linear-gradient(135deg, #f6d77b 0%, #e5b84f 100%) !important;
}

.table-responsive {
  border: 1px solid var(--line-gold) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-medium) !important;
}

.table {
  color: var(--text-main) !important;
  background: rgba(12, 11, 9, 0.88) !important;
  box-shadow: none !important;
  margin-top: 0 !important;
}

.table th,
.table td {
  border-color: rgba(246, 213, 123, 0.14) !important;
  font-size: 0.86rem !important;
  padding: 12px 11px !important;
}

.table th {
  color: #130e04 !important;
  background: linear-gradient(135deg, #f6d77b 0%, #d6a83f 100%) !important;
}

.table td,
.table td small,
.table td span {
  color: #eadbb8 !important;
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.025) !important;
}

.table tbody tr:nth-child(even) {
  background: rgba(246, 213, 123, 0.045) !important;
}

.table tr:hover {
  background: rgba(246, 213, 123, 0.11) !important;
  transform: none !important;
}

.table-photo,
.document-thumb,
.mobile-doc-thumb,
.applicant-photo img,
.member-photo img,
.image-preview img,
#qrModal img,
#imageModal img {
  border-color: rgba(246, 213, 123, 0.55) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

.page-header {
  border-bottom: 1px solid var(--line-gold) !important;
  margin-bottom: 28px !important;
}

.filters-form,
.search-form {
  gap: 16px !important;
}

.application-header,
.application-actions,
.modal-header,
.documents-row,
.mobile-card-actions,
.mobile-card-header,
.form-header,
.status-header,
.application-details h3 {
  border-color: rgba(246, 213, 123, 0.18) !important;
}

.application-id,
.member-id,
.position-badge,
.application-id.application-id {
  color: #ffe6a1 !important;
}

.application-status,
.source-badge,
.status-badge,
.position-badge {
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
}

.source-admin,
.source-user {
  color: #090807 !important;
  background: linear-gradient(135deg, #f6d77b, #b98925) !important;
}

.info-grid,
.details-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
  gap: 14px !important;
}

.detail-item,
.info-item {
  padding: 14px 16px !important;
  border-left: 3px solid var(--gold) !important;
}

.timeline-item:not(:last-child)::after {
  background: rgba(246, 213, 123, 0.28) !important;
}

.timeline-marker,
.timeline-item.completed .timeline-marker,
.timeline-item.pending .timeline-marker {
  background: linear-gradient(135deg, #f6d77b, #d6a83f) !important;
  color: #090807 !important;
}

.footer {
  background: linear-gradient(135deg, #050504 0%, #151107 100%) !important;
  border-top: 1px solid var(--line-gold) !important;
  padding: 36px 0 18px !important;
}

.footer-section h4,
.footer-section a:hover,
.status-online {
  color: var(--gold-bright) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 213, 123, 0.15) !important;
  color: var(--text-muted) !important;
}

.login-container {
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 213, 123, 0.18), transparent 34%),
    linear-gradient(135deg, #070604 0%, #18130b 100%) !important;
}

.login-card {
  max-width: 430px !important;
}

.login-header img {
  border: 2px solid rgba(246, 213, 123, 0.72) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3) !important;
}

hr {
  border: 0 !important;
  border-top: 1px solid rgba(246, 213, 123, 0.2) !important;
}

.no-data,
.no-records {
  color: var(--text-muted) !important;
}

.pagination,
.pagination-wrapper,
.pagination-numbers,
.download-buttons,
.form-actions,
.application-actions,
.mobile-card-actions {
  gap: 10px !important;
}

.modal {
  background-color: rgba(0, 0, 0, 0.74) !important;
}

.close {
  color: #ffe6a1 !important;
}

.notification {
  border: 1px solid var(--line-gold) !important;
  border-radius: 8px !important;
}

canvas {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .desktop-navigation {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px !important;
  }

  .main-content {
    padding: 18px 12px 28px !important;
  }

  .container {
    padding: 14px !important;
  }

  .header-container {
    min-height: 66px !important;
    padding: 0 14px !important;
  }

  .brand-logo,
  .trust-logo {
    width: 44px !important;
    height: 44px !important;
  }

  .brand-title {
    font-size: 0.86rem !important;
  }

  .brand-subtitle {
    font-size: 0.78rem !important;
  }

  .public-header .logo-section {
    flex-direction: row !important;
    align-items: center !important;
  }

  .public-header .logo {
    width: 52px !important;
    height: 52px !important;
  }

  .card,
  .login-card,
  .form-container,
  .status-container,
  .status-card {
    padding: 20px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 18px !important;
  }

  .btn,
  button,
  input[type="submit"] {
    width: auto;
    min-width: 0;
    padding: 10px 13px !important;
    font-size: 0.86rem !important;
  }

  .form-actions,
  .application-actions,
  .download-buttons,
  .mobile-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .application-actions .btn,
  .download-buttons .btn,
  .mobile-card-actions .btn {
    width: 100%;
  }

  .table th,
  .table td {
    font-size: 0.78rem !important;
    padding: 10px 9px !important;
  }

  .mobile-menu-content {
    width: min(100%, 330px) !important;
  }
}

@media (max-width: 480px) {
  .logo-container {
    gap: 7px !important;
  }

  .brand-text {
    margin: 0 4px !important;
  }

  .public-header .logo-section {
    gap: 8px !important;
  }

  .public-header .system-title h1 {
    font-size: 1.15rem !important;
  }

  .public-header .system-title p {
    font-size: 0.78rem !important;
  }

  .form-control,
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
