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

/* --- ROOT VARIABLES --- */
:root {
    --primary: #007A3E;    /* Deep Green */
    --secondary: #2DC84D;  /* Brand Green */
    --accent: #93DA49;     /* Light Green */
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --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 rgba(0, 0, 0, 0.1);
}

/* --- GLOBAL RESETS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- RECEPTION / LANDING PAGE (CENTERED) --- */
.reception-bg {
    background: radial-gradient(circle at top right, #f1f5f9, #e2e8f0);
    min-height: 100vh;
    display: flex;
    align-items: center; /* Vertical Center */
    justify-content: center; /* Horizontal Center */
}

.hero-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.hero-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.brand-icon {
    background: var(--primary);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 122, 62, 0.3);
}

/* --- LAYOUT COMPONENTS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.navbar {
    background: var(--surface);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Admin Shell Layout */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    padding: 2rem 1.25rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar span { color: var(--accent); }

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* --- CARDS & GRIDS --- */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card {
    cursor: pointer;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #fff;
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(45, 200, 77, 0.15);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 122, 62, 0.2);
}

/* --- TABLES & UTILITIES --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.935rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--background);
    color: var(--primary);
}

/* --- CALENDAR CUSTOMIZATION --- */
.fc {
    --fc-border-color: var(--border);
    --fc-today-bg-color: rgba(147, 218, 73, 0.1);
    background: white;
}

.fc-button-primary {
    background-color: var(--primary) !important;
    border: none !important;
    text-transform: capitalize !important;
    font-weight: 600 !important;
}

.fc-event {
    border-radius: 4px !important;
    padding: 2px 4px !important;
    font-size: 0.85rem !important;
}

/* --- FOOTER --- */
.hero-footer {
    margin-top: 4rem;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
}

.admin-link:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}
/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.brand-icon-sm {
    background: var(--accent);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Top Navigation Bar */
.top-bar {
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar input {
    width: 300px;
    background: var(--background);
    border: none;
    padding: 8px 16px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 1.8rem; font-weight: 800; margin: 0.5rem 0; color: var(--primary); }
.stat-trend { font-size: 0.75rem; color: var(--secondary); font-weight: 600; }

/* Main Content Area */
.main-content {
    flex: 1;
    background: #f1f5f9;
    overflow-y: auto;
}

.content-wrapper {
    padding: 2rem;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}

/* --- PROFESSIONAL BACKEND SHELL --- */
.admin-body {
    background-color: #f1f5f9;
    overflow: hidden;
}

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

/* SIDEBAR REWRITE */
.sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.sidebar-brand {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    background: var(--accent);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.brand-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.5px; }
.brand-text span { color: var(--accent); }

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

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

.nav-spacer { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }

/* CONTENT AREA */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-title h1 { font-size: 1.75rem; font-weight: 800; color: var(--text-main); }
.header-title p { color: var(--text-muted); font-size: 0.95rem; }

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex: 1;
    max-width: 250px;
}

.stat-card label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.stat-card .value { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-top: 0.5rem; }
.status-ok { color: var(--secondary) !important; }

/* THE CALENDAR CARD */
.calendar-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}