/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f1e6;
}

/* HEADER */
.header {
    background-color: #5a3e2b;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

/* CONTAINER */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* TITLES */
h3 {
    margin-bottom: 15px;
    color: #5a3e2b;
}

/* BUTTONS */
button {
    background-color: #8b5e3c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    transition: 0.3s;
}

button:hover {
    background-color: #6f472d;
}

/* INPUTS */
input, select {
    padding: 10px;
    margin-top: 8px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    background-color: #8b5e3c;
    color: white;
    padding: 10px;
    font-size: 14px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

table tr:hover {
    background-color: #f1e7dc;
}

/* GRID DASHBOARD */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* SUCCESS & ERROR */
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* ================= NAVBAR ================= */
.navbar {
    background-color: #3e2a1f;
    padding: 10px;
}

/* MENU BUTTON (HAMBURGER) */
.menu-toggle {
    display: none;
    background: #8b5e3c;
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: fit-content;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    background: #8b5e3c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.3s;
}

.nav-links a:hover {
    background: #6f472d;
}

/* ================= TABLE RESPONSIVE ================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .header {
        font-size: 18px;
        padding: 12px;
    }

    h3 {
        font-size: 16px;
    }

    table th, table td {
        font-size: 12px;
        padding: 8px;
    }

    /* HAMBURGER SHOW */
    .menu-toggle {
        display: block;
    }

    /* HIDE MENU BY DEFAULT */
    .nav-links {
        display: none;
        flex-direction: column;
        margin-top: 10px;
    }

    /* SHOW WHEN ACTIVE */
    .nav-links.active {
        display: flex;
    }
}