/**
 * Custom UI Styles for Fatima Convent Primary School Gate Pass System
 */

:root {
    --fc-primary: #1a365d;
    --fc-primary-dark: #0f233f;
    --fc-accent: #c53030;
    --fc-gold: #d69e2e;
    --fc-bg: #f8fafc;
    --fc-card-border: #e2e8f0;
    --fc-text-dark: #1e293b;
    --fc-text-muted: #64748b;
}

body {
    background-color: var(--fc-bg);
    color: var(--fc-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* Navbar */
.navbar-fatima {
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(15, 35, 63, 0.15);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .school-badge {
    background-color: #ffffff;
    color: var(--fc-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Dashboard Metric Cards */
.card-stat {
    border-radius: 12px;
    border: 1px solid var(--fc-card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card-stat .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Status Badges */
.badge-status {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-status-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-status-exited {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-status-expired {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Student Search Dropdown Item */
.student-search-item {
    cursor: pointer;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.student-search-item:hover {
    background-color: #f8fafc;
}

.student-search-item:last-child {
    border-bottom: none;
}

/* Action Buttons */
.btn-fatima {
    background-color: var(--fc-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
}

.btn-fatima:hover {
    background-color: var(--fc-primary-dark);
    color: #fff;
}

/* Footer */
footer.footer-fatima {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    color: var(--fc-text-muted);
    font-size: 0.85rem;
}
