
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --coffee: #806044;
    --dark: #493526;
    --caramel: #b58a60;
    --cream: #f8f4ed;
    --light: #eee5d8;
    --white: #fff;
    --text: #453a32;
    --muted: #9b9084;
    --border: #eee8df;
    --shadow: 0 8px 25px rgba(78, 57, 39, .06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text);
}

/* NAVBAR */

.navbar {
    min-height: 76px;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,.04);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 25px;
    font-weight: 900;
    color: var(--coffee);
}

.brand span {
    color: var(--caramel);
    margin-left: 5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 13px;
    font-weight: 800;
}

/* CONTAINER */

.container {
    max-width: 1400px;
    margin: 35px auto;
    padding: 0 28px;
}

/* WELCOME */

.welcome {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #493526, #957451);
    border-radius: 25px;
    padding: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(73,53,38,.17);
}

.welcome::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    right: 100px;
    top: -130px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 900;
    margin-bottom: 14px;
}

.welcome h1 {
    font-size: 33px;
    font-weight: 900;
    margin-bottom: 12px;
}

.welcome p:last-child {
    font-size: 14px;
    opacity: .9;
}

.welcome-icon {
    font-size: 90px;
    z-index: 1;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,.15));
}

/* STATISTIK */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.stat-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 25px rgba(78,57,39,.11);
}

.stat-icon {
    width: 43px;
    height: 43px;
    background: #f4ece1;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 13px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat-card h2 {
    color: var(--coffee);
    font-size: 29px;
    font-weight: 900;
    margin: 7px 0;
    overflow-wrap: anywhere;
}

.stat-card small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.income-card {
    grid-column: span 2;
    background: #f0e5d5;
}

/* PANEL */

.panel {
    background: white;
    padding: 29px;
    margin-bottom: 25px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.panel-heading h2 {
    font-size: 21px;
    font-weight: 900;
    color: var(--dark);
}

.panel-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
}

.chart-label {
    background: #f2e9dc;
    color: var(--coffee);
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
}

/* GRAFIK */

.chart-container {
    position: relative;
    width: 100%;
    height: 310px;
}

/* MENU TERLARIS */

.best-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.best-card {
    position: relative;
    overflow: hidden;
    background: #fcfaf7;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 12px;
    transition: .3s;
}

.best-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.rank {
    position: absolute;
    top: 19px;
    left: 19px;
    z-index: 2;
    background: var(--coffee);
    color: white;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
}

.best-image {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 12px;
}

.best-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    background: #eee5d8;
}

.best-info {
    padding: 12px 3px 5px;
}

.best-info h3 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 5px;
}

.best-info p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.best-info strong {
    font-size: 12px;
    color: var(--coffee);
}

/* BUTTON */

.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    background: var(--coffee);
    color: white;
    padding: 11px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: #c96e60;
}

.btn-danger:hover {
    background: #a94f43;
}

.btn-edit {
    background: #c18d4f;
}

.btn-edit:hover {
    background: #a77439;
}

.btn-light {
    background: #eee8df;
    color: var(--dark);
}

.btn-light:hover {
    background: #ded2c3;
    color: var(--dark);
}

/* FILTER */

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 24px;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fcfaf7;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

input:focus, select:focus {
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px rgba(181,138,96,.12);
}

/* TABEL */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

thead {
    background: #f4eee5;
}

th {
    padding: 16px;
    text-align: left;
    color: var(--dark);
    font-size: 12px;
    font-weight: 900;
}

td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f0ebe4;
}

tbody tr:hover {
    background: #fcfaf7;
}

td strong {
    color: var(--dark);
}

.actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* FOTO */

.foto-menu {
    width: 78px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #eee5d8;
}

.foto-kosong {
    width: 78px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2e9dc;
    border-radius: 12px;
    font-size: 27px;
}

/* STATUS */

.badge {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
}

.green {
    background: #e5f0e5;
    color: #477a4c;
}

.red {
    background: #fbe8e4;
    color: #bd5e51;
}

.empty {
    text-align: center;
    padding: 35px;
    color: var(--muted);
}

/* FORM */

.form-card {
    max-width: 550px;
    margin: 45px auto;
    padding: 35px;
    background: white;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-card h2 {
    color: var(--coffee);
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 8px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.form-card label {
    display: block;
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 900;
}

.form-card input,
.form-card select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-family: inherit;
}

.form-card input[type="file"] {
    background: #fcfaf7;
}

.foto-preview {
    width: 140px;
    height: 110px;
    object-fit: cover;
    border-radius: 13px;
    border: 3px solid #eee5d8;
    margin: 10px 0;
}

.full {
    width: 100%;
    margin-top: 22px;
}

.full-link {
    display: block;
    text-align: center;
    margin-top: 12px;
}

.alert {
    background: #fbe8e4;
    color: #bd5e51;
    padding: 13px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 30px 10px;
    color: var(--muted);
    font-size: 12px;
}

/* TABLET */

@media(max-width: 1050px) {
    .best-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

/* HP */

@media(max-width: 600px) {
    .navbar {
        padding: 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-right {
        font-size: 11px;
    }

    .container {
        padding: 0 13px;
        margin-top: 20px;
    }

    .welcome {
        padding: 25px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .welcome-icon {
        font-size: 48px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .income-card {
        grid-column: span 1;
    }

    .panel {
        padding: 17px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .best-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-image {
        height: 105px;
    }

    .chart-container {
        height: 250px;
    }

    .form-card {
        margin: 20px 12px;
        padding: 23px;
    }

    .actions {
        gap: 5px;
    }

    .actions .btn {
        padding: 9px 11px;
    }
}
