*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:white;
    padding:20px;
    min-height:100vh;
}

.container{
    max-width:1300px;
    margin:auto;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:25px;
    padding:25px;
    box-shadow:0 20px 40px rgba(0,0,0,.3);
}

h1{
    text-align:center;
    margin-bottom:25px;
    font-size:2rem;
    font-weight:700;
}

.dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
    padding:25px;
    border-radius:20px;
    text-align:center;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h2{
    color:#22c55e;
    font-size:2rem;
    margin-bottom:8px;
}

.card p{
    color:#cbd5e1;
}

input{
    width:100%;
    padding:14px;
    margin-bottom:12px;
    border:none;
    border-radius:12px;
    background:#334155;
    color:white;
    font-size:15px;
    outline:none;
}

input::placeholder{
    color:#94a3b8;
}

button{
    width:100%;
    padding:14px;
    margin-top:10px;
    border:none;
    border-radius:12px;
    background:#22c55e;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#16a34a;
    transform:translateY(-2px);
}

table{
    width:100%;
    margin-top:25px;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:15px;
}

th{
    background:#22c55e;
    color:white;
    padding:15px;
}

td{
    background:#1e293b;
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

tr:hover td{
    background:#334155;
}

.total{
    margin-top:20px;
    text-align:right;
    font-size:1.5rem;
    color:#22c55e;
}

.grafik-box{
    margin-top:30px;
    background:#1e293b;
    border-radius:20px;
    padding:20px;
    height:420px;
}

#salesChart{
    width:100% !important;
    height:360px !important;
}

.foto-produk{
    width:70px;
    height:70px;
    border-radius:15px;
    object-fit:cover;
}

#riwayatTransaksi td{
    background:#0f172a;
}

@media(max-width:768px){

    body{
        padding:10px;
    }

    .container{
        padding:15px;
    }

    h1{
        font-size:1.5rem;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .foto-produk{
        width:50px;
        height:50px;
    }

    .card h2{
        font-size:1.5rem;
    }
}