:root {
    --primary: #2c3e50;
    --accent: #b8926a;
    --bg: #f9f7f2;
    --white: #ffffff;
    --text: #333;
    --light-gray: #f0f0f0;
}
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}
/* Navigation */
/*nav {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    sticky: top;
}
*/
nav {
    position: relative; /* Or fixed/sticky depending on your design */
    z-index: 1000; /* High number to stay above slides */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Add background-color if the menu is transparent */
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Search with Internal Button */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar {
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 180px;
    transition: 0.3s;
}
    .search-bar:focus {
        width: 240px;
        outline: none;
        border-color: var(--accent);
    }
.search-btn {
    position: absolute;
    right: 5px;
    background: var(--primary);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Dropdown Menu */
.dropdown {
    position: relative;
}
.menu-icon {
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--primary);
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    min-width: 220px; /* Slightly narrower for a sleeker look */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Lighter, more modern shadow */
    border-radius: 0;
    border-top: 2px solid var(--bksp-navy);
    z-index: 1001;
    padding: 8px 0;
    animation: fadeInMenu 0.25s ease-out;
}
    .dropdown-content a {
        color: var(--bksp-navy);
        padding: 10px 20px; /* Tighter padding for a slim menu */
        text-decoration: none;
        display: block;
        font-family: 'Inter', sans-serif;
        /* Elegant Small Typography */
        font-size: 0.75rem; /* Reduced size for elegance */
        font-weight: 600;
      /*  text-transform: uppercase;*/
        letter-spacing: 1.5px; /* Increased spacing for readability */
        transition: all 0.2s ease-in-out;
    }
        .dropdown-content a:hover {
            background-color: #f9f9f9;
            color: var(--bksp-gold);
            padding-left: 24px; /* Subtle nudge on hover */
        }
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* Layout Grid */
.container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}
.main-dashboard-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    align-items: start;
}
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Chart and Box Styling */
.chart-container, .notifications-box, .stat-card {
    background: var(--white);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-radius: 4px;
}
.chart-container {
    height: 320px;
    position: relative;
}
h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.3rem;
}
/* Notifications */
.notif-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--accent);
    color: white;
    margin-right: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
/* BOTTOM STATISTICS SECTION */
.bottom-stats-section {
    margin-top: 80px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.stat-card {
    text-align: center;
    border-top: 4px solid var(--accent);
}
    .stat-card h3 {
        margin: 0;
        font-size: 2.2rem;
        color: var(--primary);
        font-family: 'Playfair Display', serif;
    }
    .stat-card p {
        margin: 5px 0 0;
        color: #888;
        text-transform: uppercase;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
    }
/* --- Elegant Bottom Transition --- */
.elegant-spacer {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    width: 60%;
    margin: 100px auto 60px auto; /* Large 100px gap above the stats */
    opacity: 0.4;
}
.bottom-stats-wrapper {
    margin-bottom: 80px; /* Space before the footer */
    animation: fadeInUp 1s ease-out;
}
    /* Enhancing the stats grid for the bottom position */
    .bottom-stats-wrapper .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
        padding: 0 10px;
    }
    .bottom-stats-wrapper .stat-card {
        background: var(--white);
        padding: 35px 20px;
        border-radius: 4px;
        border-top: 4px solid var(--accent);
        box-shadow: 0 10px 30px rgba(0,0,0,0.02); /* Softer shadow for the bottom */
        transition: all 0.3s ease;
    }
        .bottom-stats-wrapper .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(184, 146, 106, 0.1);
        }
/* Subtle fade-in animation for a premium feel */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.notif-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease; /* THE SLIDE MAGIC */
    background: #fffef0; /* Subtle yellow background */
    border-radius: 4px;
}
/* Optional: Add a hover effect to the title to show it's clickable */
.notif-item:hover {
    background-color: #fcfcfc;
}
/* The Detail Box (Hidden by default) */
.notif-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    background: #fffef0; /* Paper yellow */
    border-left: 4px solid var(--accent);
    margin-bottom: 0;
    padding: 0 15px;
}
    /* The Toggle State */
    .notif-detail.show {
        max-height: 200px; /* Enough space for text */
        opacity: 1;
        margin-bottom: 20px;
        padding: 15px;
    }
#detail-head {
    display: block;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
#detail-body {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}
.librarian-tip {
    margin-top: 30px;
    padding: 15px;
    background: var(--bg);
    border-left: 3px solid var(--accent);
    font-size: 0.85rem;
}
/* Footer adjustment to ensure no crowding */
footer {
    margin-top: 0;
    padding: 60px 0;
    background: var(--primary);
    border-top: 5px solid var(--accent); /* Elegant gold border above footer */
}
/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 40px 0;
}
/* Responsive */
@media (max-width: 1100px) {
    .main-dashboard-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
.officer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.officer-row {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
    .officer-row:hover {
        background: #f9fbfd;
        transform: translateY(-2px);
    }
.officer-id {
    font-weight: bold;
    color: #888;
    text-align: center;
    width: 50px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-left: 4px solid #1a3a5f;
}
.officer-img-cell {
    width: 180px;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.officer-photo {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}
.officer-info-cell, .officer-contact-cell {
    padding: 20px;
    vertical-align: top;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.officer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a5f;
    margin-bottom: 4px;
    display: block;
}
.officer-title {
    font-weight: 600;
    color: #c0392b;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: block;
}
.detail-item {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #444;
    display: flex;
}
.label {
    font-weight: 600;
    color: #777;
    width: 90px;
    flex-shrink: 0;
}
.val {
    color: #333;
}
/* Elegant Header Container */
.header-section {
    border-bottom: 2px solid #1a3a5f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
    .header-section h1 {
        font-family: 'Playfair Display', serif; /* Use a classic serif font */
        color: #1a3a5f;
        font-size: 2.2rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    /* Subtitle or Breadcrumb style */
    .header-section span {
        font-family: 'Segoe UI', sans-serif;
        color: #c0392b; /* Matches the designation color */
        font-weight: 500;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
/* Table container for better alignment */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
