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

:root {
  /* Color Palette */
  --navy: #0B1437;
  --navy-light: #152057;
  --gold: #F5A623;
  --gold-dark: #d4891c;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --white: #FFFFFF;
  --off-white: #F8F9FE;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: #1E2A4A;
  --text-secondary: #6B7280;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  /* Typography */
  --font-base: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-gold: 0 4px 14px 0 rgba(245, 166, 35, 0.39);
  
  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.aau-body {
  font-family: var(--font-base);
  color: var(--text-primary);
  background-color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--navy);
  text-decoration: none;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navy);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(245, 166, 35, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 1s ease-in-out infinite;
}

/* Navbar */
.aau-navbar {
  background: rgba(11, 20, 55, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all var(--transition-normal);
}

.aau-navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(11, 20, 55, 0.95);
  box-shadow: var(--shadow-md);
}

.aau-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aau-navbar .navbar-brand img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-bounce);
}

.aau-navbar .navbar-brand:hover img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.nav-link.custom-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link.custom-link:hover,
.nav-link.custom-link.active {
  color: var(--gold) !important;
}

.nav-link.custom-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link.custom-link:hover::after,
.nav-link.custom-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 15% 50%, rgba(245, 166, 35, 0.08), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-title .text-gold {
  color: var(--gold);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.glass-card-dark {
  background: rgba(11, 20, 55, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-gold:hover, .btn-gold:focus, .btn-gold:active {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover, .btn-outline-gold:focus, .btn-outline-gold:active {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(11, 20, 55, 0.3);
}

.btn-navy:hover, .btn-navy:focus {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 20, 55, 0.4);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-floating > label {
  padding-left: 1rem;
  color: var(--text-secondary);
}

.form-control, .form-select {
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: #F9FAFB;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  background-color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(245, 166, 35, 0.25);
  outline: 0;
}

.form-control::placeholder {
  color: #9CA3AF;
}

.input-group-text {
  background-color: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: var(--text-secondary);
}

/* Form Steps */
.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #E5E7EB;
  transform: translateY(-50%);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 auto 0.5rem;
  transition: all var(--transition-normal);
}

.step-item.active .step-circle {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}

.step-item.completed .step-circle {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-item.active .step-label {
  color: var(--navy);
  font-weight: 600;
}

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--off-white);
}

.main-content {
  flex: 1;
  padding: 2rem;
  width: 100%;
  transition: all 0.3s ease;
  overflow-y: auto;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 280px;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1040;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.sidebar-brand {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
  height: 40px;
}

.sidebar-brand h5 {
  margin: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.sidebar-user {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-user .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1.25rem;
}

.sidebar-user-info p {
  margin: 0;
}

.sidebar-user-info .name {
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-user-info .role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav .nav-item {
  padding: 0.25rem 1rem;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav .nav-link.active {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.sidebar-nav .nav-header {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.admin-body {
  display: flex;
  min-height: 100vh;
}

.admin-main-content {
  flex: 1;
  min-height: 100vh;
  overflow-y: auto;
  background-color: var(--off-white);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Topbar */
.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
}

.topbar-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  display: none;
}

/* Dashboard Tiles */
.dash-tile {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid #E5E7EB;
  text-decoration: none;
  color: inherit;
}

.dash-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.dash-tile-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
}

.bg-primary-light { background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%); }
.bg-success-light { background: linear-gradient(135deg, #34D399 0%, #10B981 100%); }
.bg-warning-light { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); }
.bg-danger-light { background: linear-gradient(135deg, #F87171 0%, #EF4444 100%); }
.bg-gold-light { background: linear-gradient(135deg, #FCD34D 0%, #F5A623 100%); }

.dash-tile-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

.dash-tile-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Data Tables */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  border: 1px solid #E5E7EB;
  overflow-x: auto;
}

.aau-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.aau-table th {
  background: #F9FAFB;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #E5E7EB;
  white-space: nowrap;
}

.aau-table td {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid #E5E7EB;
  vertical-align: middle;
}

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

.aau-table tbody tr:hover {
  background-color: #F9FAFB;
}

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

/* Status Badges */
.badge {
  padding: 0.4em 0.8em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accepted {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-verified {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Animations */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

/* Print Styles */
@media print {
  .aau-navbar, .admin-sidebar, .admin-topbar, .btn, .page-loader, footer {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .dashboard-wrapper {
    display: block;
  }
  
  .main-content {
    padding: 0;
    width: 100%;
  }
  
  .glass-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    position: fixed;
    height: 100%;
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  .topbar-toggle {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .form-steps {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-steps::before {
    display: none;
  }
  
  .step-item {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }
  
  .step-circle {
    margin: 0;
  }
  
  .dash-tile {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .glass-card {
    padding: 1.25rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
}
