@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1B9E98;
    /* Deep Teal */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-gray: #E5E7EB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background: var(--bg-white);
}

/* --- Simple Navbar --- */
.simple-navbar {
    border-bottom: 1px solid var(--border-gray);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.simple-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.simple-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.simple-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.simple-nav-links {
    display: flex;
    gap: 25px;
}

.simple-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.simple-nav-links a:hover {
    color: var(--primary-color);
}

/* --- Clean Hero --- */
.simple-hero {
    padding: 80px 5%;
    background: var(--bg-light);
    text-align: center;
}

.simple-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.simple-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- Main Layout Structure --- */
.main-layout-container {
    display: flex;
    gap: 40px;
    padding: 40px 5%;
}

.sidebar-column {
    flex: 0 0 260px;
}

.content-column {
    flex: 1;
    min-width: 0;
    /* Prevents overflow in flex items */
}

/* --- Section Container --- */
.simple-section {
    padding: 60px 0;
}

/* --- Horizontal Stats --- */
.simple-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: 40px 0;
    margin-top: 20px;
    text-align: center;
}

/* --- Three-Column Grid --- */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Neat Management Section --- */
.simple-admin {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.admin-img {
    flex: 0 0 250px;
}

.admin-img img {
    width: 100%;
    border-radius: 12px;
}

/* --- Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bgShift 3s forwards ease-in-out;
}

@keyframes bgShift {
    0% {
        background-color: #ffffff;
    }

    50% {
        background-color: #ecfdf5;
    }

    100% {
        background-color: #1B9E98;
    }
}

.splash-content {
    text-align: center;
    animation: contentFade 3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-logo-large {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

@keyframes contentFade {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    30% {
        transform: scale(1.05);
        opacity: 1;
    }

    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

body.splash-active {
    overflow: hidden;
}

/* Hide splash when done */
.splash-hidden {
    display: none !important;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .main-layout-container {
        flex-direction: column;
    }

    .sidebar-column {
        flex: none;
        width: 100%;
    }

    .simple-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
        padding-right: 0;
    }

    .sidebar-link {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .simple-nav-links {
        display: none;
        /* In a real app we'd toggle this with JS */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-gray);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .simple-nav-links.active {
        display: flex;
    }

    .simple-admin {
        flex-direction: column;
    }

    .admin-img {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .simple-logo-img {
        height: 35px;
    }

    .simple-logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .simple-hero {
        padding: 60px 5%;
    }

    .simple-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}