/* ---------------- GLOBAL ---------------- */
:root{
    --bg: #FFFDD0;
    --panel: #fffef2;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --accent: #8B8000;
}
* { box-sizing: border-box; }
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}



/* ---------------- SIDEBAR ---------------- */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--panel);
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    transform: translateX(0);
    transition: transform .3s ease-in-out;
    z-index: 1500;
}

.sidebar h4 {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0 10px;
    font-size: 1.05rem;
}

.sidebar a {
    display: block;
    padding: 12px 18px;
    margin: 8px 12px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 10px;
    transition: background .2s ease, transform .12s;
    font-weight: 500;
}
.sidebar a:hover,
.sidebar .active {
    background: #FAFAD2;
}

/* ---------------- MAIN CONTENT ---------------- */
.main-content {
    margin-left: 260px;
    padding: 25px;
    transition: margin-left .3s ease;
    min-height: 100vh;
    /* If you want the welcome-card to sit centered on the page when no sidebar visible,
       add a helper container in HTML; otherwise the welcome-card styles above center it. */
}

/* ---------------- CARDS ---------------- */
.card-custom {
    background: var(--panel);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .25s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-3px);
}

.summary-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

/* Responsive grid for summary cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

/* Form inputs default styling (keeps welcome page and forms consistent) */
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.95rem;
    outline: none;
    box-shadow: none;
}
input::placeholder { color: #bbb; }

/* ---------------- BUTTONS ---------------- */
.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
    border: none;
    width: 100%;
    transition: background .18s ease;
    cursor: pointer;
}
.btn-gold:hover {
    background: var(--gold-dark);
}

/* ---------------- MOBILE LAYOUT ---------------- */
.menu-btn {
    display: none;
}

/* Mobile breakpoint */
@media (max-width: 768px) {

    /* Hide sidebar by shifting it left */
    .sidebar {
        transform: translateX(-260px);
    }

    /* When toggled, add the .open class in JS to show */
    .sidebar.open {
        transform: translateX(0);
    }

    /* Show menu button (you should have a .menu-btn button in HTML) */
    .menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 2001;
        background: var(--gold);
        border: none;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        cursor: pointer;
    }

    /* Main content uses full width on phones */
    .main-content {
        margin-left: 0 !important;
        padding: 18px;
        padding-top: 70px; /* space for menu button */
    }

    /* Cards take full width on small screens */
    .card-custom,
    .welcome-card {
        width: 100%;
        margin-left: 0;
    }

    /* Reduce welcome card padding a bit for small screens */
    .welcome-card {
        padding: 20px;
        border-radius: 12px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .summary-number {
        font-size: 26px;
    }
}

/* Extra small phones: keep everything readable and prevent overflow */
@media (max-width: 360px) {
    .welcome-btn,
    .secondary-btn {
        min-width: 120px;
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .sidebar a {
        padding: 10px 14px;
        margin: 6px 8px;
    }
}

