@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-800.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --color-navy: #003B46;
  --color-navy-dark: #002b33;
  --color-navy-light: #004d5c;
  --color-emerald: #07D08A;
  --color-emerald-light: rgba(7, 208, 138, 0.1);
  --color-emerald-600: #059669;
  --color-neutral-bg: #F8FAFC;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  
  --color-blue-500: #3b82f6;
  --color-cyan-400: #22d3ee;
  --color-orange-500: #f97316;
  --color-amber-400: #fbbf24;
  --color-purple-500: #a855f7;
  --color-indigo-400: #818cf8;
  --color-rose-500: #f43f5e;
  --color-pink-400: #f472b6;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --accent-emerald: #07D08A;
}

/* Base Reset & Typography */
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../vendor/fonts/inter-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../vendor/fonts/poppins-800.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-neutral-bg);
  color: var(--color-slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
}

.admin-body {
  background-color: var(--color-slate-50);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: all 0.2s;
}

/* Custom premium aesthetic utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-navy), var(--color-emerald));
}

.bg-gradient-navy-emerald {
  background: linear-gradient(to bottom right, var(--color-navy), var(--color-emerald));
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Shared Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1500;
  padding: 0.5rem 0;
  background-color: #FDFBF7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.85rem;
  background-color: var(--color-navy);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 59, 70, 0.2);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.85rem;
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-slate-200);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background-color: var(--color-slate-200);
  transform: translateY(-1px);
}

.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.85rem;
  background-color: #fee2e2;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(153, 27, 27, 0.1);
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #fecaca;
  color: #7f1d1d;
}

.btn-sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.5rem !important;
    gap: 0.35rem !important;
}

.btn-outline-emerald {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: transparent;
    border: 1px dashed var(--color-emerald-600);
    color: var(--color-emerald-600);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-emerald:hover {
    background: var(--color-emerald-light);
    border-style: solid;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.btn-icon:hover {
    background: var(--color-slate-100);
}

/* Public Nav Dropdown */
.nav-item-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    border: 1px solid var(--color-slate-100);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--color-slate-600);
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-dropdown-link:hover {
    background: var(--color-slate-50);
    color: var(--color-navy);
    padding-left: 1.25rem;
}

/* Administrative Layout Common */
.main-wrapper {
    margin-left: 16rem;
    background-color: var(--color-slate-50);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 16rem);
}

admin-sidebar.collapsed ~ .main-wrapper {
    margin-left: 5rem;
    width: calc(100% - 5rem);
}

@media (max-width: 1024px) {
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.page-content { 
    padding: 2rem 2.5rem; 
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
}

/* Standardized Header Panel */
.header-panel {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: white !important;
    border: 1px solid var(--color-slate-200) !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 1.25rem !important;
    box-shadow: var(--shadow-sm) !important;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.header-panel::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--color-navy);
}

.page-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--color-navy) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    font-size: 0.875rem !important;
    color: var(--color-slate-500) !important;
    font-weight: 500 !important;
    margin: 0.5rem 0 0 0 !important;
}

/* Panel Design */
.card-panel {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-slate-200);
    position: relative;
}

.inline-panel { 
    border: 1px dashed var(--color-emerald) !important; 
    background: #f0fdf9 !important;
    display: none; 
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 1.5rem !important;
}

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Forms */
.form-grid { 
    display: grid; 
    grid-template-columns: repeat(1, 1fr); 
    gap: 1.5rem; 
}
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .form-grid { grid-template-columns: repeat(3, 1fr); } }

.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { font-size: 0.75rem; font-weight: 800; color: var(--color-slate-500); text-transform: uppercase; letter-spacing: 0.05em; }
.input-group input, .input-group select, .input-group textarea { 
    padding: 0.875rem 1rem; 
    border: 1px solid var(--color-slate-200); 
    border-radius: 0.75rem; 
    font-family: inherit; 
    font-size: 0.875rem; 
    background-color: white;
    transition: all 0.2s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { 
    border-color: var(--color-emerald); 
    outline: none; 
    box-shadow: 0 0 0 4px var(--color-emerald-light);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-100);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-slate-50);
}

td {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    border-bottom: 1px solid var(--color-slate-100);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: var(--color-slate-50); }

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Dashboard Specifics */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
}

/* Layout Utilities */
.fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Footer Elements */
.footer {
    background-color: var(--color-slate-900);
    padding: 4rem 0 3rem; /* Reduced padding */
    color: white;
}

/* Public Navbar & Mobile Menu */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover { color: var(--color-emerald); }

.mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-navy);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mobile-btn { display: block; }
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--color-emerald-light);
    z-index: 1000;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    padding: 1.5rem 0;
}

.mobile-menu-inner {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    padding: 0.75rem 0;
}

/* Hero Section Responsiveness */
.hero-title-responsive {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-navy);
}

@media (min-width: 768px) {
    .hero-title-responsive { font-size: 3.25rem; }
}

@media (max-width: 480px) {
    .hero-title-responsive { font-size: 1.75rem; }
}

.hero {
    min-height: auto;
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 3rem 0 !important; }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .card-panel, .page-content { padding: 1.25rem !important; }
    .main-wrapper { padding: 1rem !important; }
}

.admin-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--color-slate-200);
    text-align: center;
    margin-top: auto;
}

/* Authentication Layout */
.background-blob {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, var(--color-emerald-light) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.login-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: white;
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-slate-100);
    position: relative;
    z-index: 10;
}

.login-header { text-align: center; margin-bottom: 2.5rem; }
.brand-logo { 
    width: 4.5rem; 
    height: 4.5rem; 
    background: var(--color-navy); 
    color: white; 
    border-radius: 1.25rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 59, 70, 0.3);
}

.login-title { font-size: 1.75rem; font-weight: 800; color: var(--color-navy); margin-bottom: 0.5rem; }
.login-subtitle { color: var(--color-slate-500); font-size: 0.95rem; font-weight: 500; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 800; color: var(--color-slate-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }

.field-container { position: relative; }
.field-icon { 
    position: absolute; 
    left: 1.25rem; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--color-slate-400); 
    width: 1.1rem; 
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.25rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--color-slate-50);
    transition: all 0.2s;
}

.form-input:focus {
    background-color: white;
    border-color: var(--color-emerald);
    outline: none;
    box-shadow: 0 0 0 4px var(--color-emerald-light);
}

.form-input:focus + .field-icon { color: var(--color-emerald); }

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-navy);
    color: white;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.footer-text { text-align: center; margin-top: 3rem; font-size: 0.75rem; color: var(--color-slate-400); line-height: 1.6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

