:root {
    --bg: #0f1720;  /* page background */
    --sidebar: #0b0d10; /* sidebar background */
    --card: #ffffff;    /* card background (light area) */
    --muted: #9aa3ad;
    --accent: #f2b441;  /* KanreTime accent */
    --glass: rgba(255, 255, 255, 0.04);
    --text-light: #e9eef3;
    --text-dark: #0b1220;
}

@font-face {
    font-family: outfit;
    src: url(./assets/font/Outfit/Outfit-VariableFont_wght.ttf);
}

* {
    box-sizing: border-box;
    margin:0;
    padding:0;
}

body {
    font-family: outfit, 'Poppins', system-ui, Arial;
    background: linear-gradient(180deg, var(--bg), #081018 120%);
    color: var(--text-light);
}

/* LAYOUT */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    background: var(--sidebar);
    padding: 28px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #081018;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.brand h1 {
    font-size: 18px;
    margin: 0
}

.brand p {
    font-size: 12px;
    color: var(--muted)
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .18s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px)
}

.nav a.active {
    background: linear-gradient(90deg, rgba(242, 180, 65, 0.12), rgba(242, 180, 65, 0.06));
    box-shadow: inset 0 0 0 1px rgba(242, 180, 65, 0.06)
}

.sidebar .section-title {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 6px
}

.logout {
    margin-top: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer
}

/* MAIN */
.main {
    padding: 22px 36px;
    overflow: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.topbar #left{
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar #left button{
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(242, 180, 65, 0.12);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer
              
}

.topbar #right{
    display: flex; 
    align-items: center; 
    gap: 16px;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    padding: 10px;
    border-radius: 10px;
    width: 420px;
}

.search input {
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text-light);
    width: 100%;
    font-size: 14px
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px
}

.notif {
    position: relative
}

.notif .dot {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 10px;
    height: 10px;
    background: #ff4d6d;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.08)
}

.profile #admin-info{
    text-align: right;
}

.profile #admin-info #name{
    font-weight: 700;
}

.profile #admin-info #mail{
    font-size: 12px
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff4e6, #ffe0b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b1a00;
    font-weight: 700
}

/* DASHBOARD CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(3, 6, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.card h4 {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px
}

.card p {
    margin: 8px 0 0 0;
    font-weight: 700;
    font-size: 20px
}

.card div{
    margin-top: 8px; 
    font-size: 12px
}

/* CONTENT GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.chart-card {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.small-card {
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01));
}

.table-card {
    margin-bottom: 22px;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; /* 6 kolom sama lebar */
    gap: 0; /* Tidak ada gap antar sel */
    color: var(--text-light);
}

.header {
    color: var(--muted);
    font-weight: 700;
    padding: 12px;
}

.cell {
    padding: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.status {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.status.processing {
    background: rgba(242, 180, 65, 0.12);
    color: var(--accent);
}

.status.completed {
    background: rgba(84, 214, 144, 0.12);
    color: #54d690;
}

.status.cancel {
    background: rgba(255, 77, 109, 0.06);
    color: #ff4d6d;
}


/* tiny helpers */
.muted {
    color: var(--muted);
    font-size: 13px
}

#menu-terlaris-container{
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap:22px;
}

#menu-terlaris-container .left{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius:12px;
    padding: 12px;
}
#menu-terlaris-container .left > h3{
    margin-bottom:50px;
}

#menu-terlaris-container .left .content{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#menu-terlaris-container .left .content img{
    width: 100%;
}

#menu-terlaris-container .left .description{
    padding:0 15px 36px;;
    display: flex;
    flex-direction: column;
    gap:15px;
    font-size: 1.15rem;
}

#menu-terlaris-container .left .description > p:first-of-type{ 
    line-height: 1.8rem;
}

#menu-terlaris-container .right{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 150px);
    gap:22px
}

#menu-terlaris-container .right > div{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius:12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
}

#menu-terlaris-container .right div img{
    width: 75%;
}
#menu-terlaris-container .right div .description{
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap:10px
}

