*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#030303;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
}

.layout{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */
.sidebar{
    width:290px;
    background:linear-gradient(180deg,#160000,#050000);
    padding:38px 20px;
    border-right:1px solid rgba(255,120,30,.18);
}

.brand{
    display:flex;
    gap:12px;
    align-items:center;
    color:#ffe15a;
    font-size:32px;
    font-weight:900;
    line-height:1.15;
    margin-bottom:38px;
}

.brand span{
    font-size:30px;
}

.sidebar a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:17px 18px;
    border-radius:14px;
    margin-bottom:14px;
    font-size:18px;
    font-weight:700;
}

.sidebar a.active,
.sidebar a:hover{
    background:linear-gradient(90deg,#ff3d35,#ffb248);
    color:#000;
}

/* CONTENT */
.content{
    flex:1;
    padding:38px 36px;
    background:
        radial-gradient(circle at top left, rgba(60,0,0,.35), transparent 35%),
        #030303;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:30px;
}

h1{
    margin:0;
    color:#ffd957;
    font-size:38px;
    font-weight:900;
}

.topbar p{
    margin-top:8px;
    color:#e5e7eb;
    font-size:18px;
}

/* BUTTON */
.top-btn{
    display:inline-block;
    background:linear-gradient(90deg,#ff3636,#ffb247);
    color:#000;
    text-decoration:none;
    border:none;
    border-radius:16px;
    padding:15px 25px;
    font-size:19px;
    font-weight:900;
    cursor:pointer;
}

.top-btn.small{
    padding:14px 23px;
    font-size:18px;
}

/* STATS */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:28px;
}

.stat-card{
    background:#030303;
    border:1px solid rgba(255,171,64,.22);
    border-radius:24px;
    padding:28px 30px;
    min-height:130px;
}

.stat-card span{
    display:block;
    color:#e5e7eb;
    font-size:18px;
    margin-bottom:14px;
}

.stat-card strong{
    color:#ffe15a;
    font-size:38px;
    font-weight:900;
}

/* MAIN CARD */
.card{
    background:#030303;
    border:1px solid rgba(255,171,64,.22);
    border-radius:24px;
    padding:30px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:28px;
}

.section-head h2{
    margin:0;
    color:#ffd957;
    font-size:28px;
}

/* TABLE */
.table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    color:#ffe15a;
    text-align:left;
    padding:16px;
    font-size:16px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

td{
    padding:18px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    vertical-align:middle;
    font-size:16px;
}

td b{
    font-size:18px;
}

.thumb{
    width:100px;
    height:58px;
    object-fit:cover;
    border-radius:8px;
}

.badge{
    background:rgba(255,178,71,.14);
    color:#ffd957;
    padding:8px 12px;
    border-radius:999px;
    font-size:14px;
}

.action-delete{
    color:#ff7b7b;
    text-decoration:none;
    font-weight:800;
}

/* MODAL */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:999;
}

.modal-content{
    width:90%;
    max-width:900px;

    max-height:90vh;
    overflow-y:auto;

    transform:scale(0.85);
    transform-origin:top center;

    margin:20px auto;

    background:#050505;

    border:1px solid rgba(255,200,60,.45);
    border-radius:28px;

    padding:34px 34px 140px;

    box-shadow:
        0 0 12px rgba(255,220,80,.55),
        0 0 28px rgba(255,140,0,.38),
        0 0 55px rgba(255,60,40,.22),
        0 30px 80px rgba(0,0,0,.75);
}

.modal-content h2{
    margin-top:0;
    color:#ffd957;
}

.modal-content input,
.modal-content textarea{
    width:100%;
    margin-top:12px;
    padding:14px;
    border-radius:12px;
    border:1px solid rgba(255,171,64,.2);
    background:#000;
    color:#fff;
    font-size:15px;
}

.modal-content textarea{
    min-height:110px;
    resize:vertical;
}

.modal-content button{
    width:100%;
    margin-top:16px;
}

.close{
    float:right;
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

/* RESPONSIVE */
@media(max-width:900px){
    .layout{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        gap:18px;
    }
}

.login-page{
    min-height:100vh;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at top left, rgba(100,0,0,.45), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,145,30,.22), transparent 30%),
        #050000;
    font-family:Arial, Helvetica, sans-serif;
    color:#fff;
}

.login-box{
    width:560px;
    max-width:92%;
    background:#030303;

    border:1px solid rgba(255,200,60,.35);
    border-radius:28px;

    padding:60px 46px 48px;

    position:relative;
    overflow:visible;
    z-index:1;

    box-shadow:
        0 0 10px rgba(255,200,60,.45),
        0 0 25px rgba(255,120,0,.35),
        0 0 45px rgba(255,60,60,.22),
        0 30px 80px rgba(0,0,0,.7);
}

/* OUTER RGB GLOW */
.login-box::before{
    content:"";
    position:absolute;
    inset:-3px;
    border-radius:31px;

    background:linear-gradient(
        120deg,
        #ff2d2d,
        #ff8a00,
        #ffe600,
        #ff8a00,
        #ff2d2d
    );

    background-size:300% 300%;

    z-index:-1;

    filter:blur(14px);
    opacity:.85;

    animation:borderGlowWave 5s ease-in-out infinite;
}

/* INNER LIGHT */
.login-box::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:28px;
    background:#030303;
    z-index:-1;
}

@keyframes borderGlowWave{
    0%{
        background-position:0% 50%;
        filter:blur(12px);
    }

    50%{
        background-position:100% 50%;
        filter:blur(18px);
    }

    100%{
        background-position:0% 50%;
        filter:blur(12px);
    }
}

/* RGB BERGERAK */
@keyframes rgbWave{
    0%{
        background-position:0% 50%;
    }

    25%{
        background-position:50% 100%;
    }

    50%{
        background-position:100% 50%;
    }

    75%{
        background-position:50% 0%;
    }

    100%{
        background-position:0% 50%;
    }
}

/* GELOMBANG / GOYANG HALUS */
@keyframes floatWave{
    0%{
        transform:translateY(0px) scale(1);
    }

    25%{
        transform:translateY(-3px) scale(1.01);
    }

    50%{
        transform:translateY(2px) scale(1.015);
    }

    75%{
        transform:translateY(-2px) scale(1.01);
    }

    100%{
        transform:translateY(0px) scale(1);
    }
}

.login-logo{
    text-align:center;
    color:#ffd957;
    font-size:34px;
    font-weight:900;
    margin-bottom:35px;
}

.login-subtitle{
    text-align:center;
    font-size:20px;
    margin-bottom:34px;
}

.login-box label{
    display:block;
    color:#ffe15a;
    font-size:18px;
    font-weight:800;
    margin:18px 0 10px;
}

.login-box input{
    width:100%;
    height:64px;
    background:#030303;
    border:1px solid rgba(255,60,60,.55);
    border-radius:18px;
    color:#fff;
    padding:0 18px;
    font-size:18px;
    outline:none;
}

.login-box button{
    width:100%;
    margin-top:32px;
    height:66px;
    border:none;
    border-radius:18px;
    background:linear-gradient(90deg,#ff3636,#ffb247);
    color:#000;
    font-size:20px;
    font-weight:900;
    cursor:pointer;
}

.login-error{
    background:rgba(255,0,0,.15);
    border:1px solid rgba(255,80,80,.45);
    color:#ff8b8b;
    padding:12px;
    border-radius:12px;
    margin-bottom:18px;
    text-align:center;
}

.modal-modern{
    width:760px;
    max-width:94%;
    max-height:90vh;
    overflow-y:auto;
    padding:34px;
}

.modal-modern h2{
    color:#ffe15a;
    font-size:30px;
    margin-bottom:24px;
}

.modal-modern label{
    display:block;
    color:#ffe15a;
    font-size:19px;
    font-weight:900;
    margin:20px 0 9px;
}

.modal-modern input,
.modal-modern textarea{
    width:100%;
    background:#030303;
    border:1px solid rgba(255,171,64,.35);
    border-radius:16px;
    color:#fff;
    padding:16px 18px;
    font-size:16px;
    outline:none;
}

.modal-modern textarea{
    min-height:170px;
    resize:vertical;
    line-height:1.6;
}

.modal-modern input:focus,
.modal-modern textarea:focus{
    border-color:#ffb247;
}

.emoji-box{
    background:#1a1208;
    border-radius:18px;
    padding:16px 18px;
    margin-top:20px;
    color:#fff;
    font-size:18px;
    line-height:1.7;
}

.emoji-box b{
    color:#ffe15a;
}

.button-row-modal{
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:16px;
    background:#0b0b0b;
    padding:16px;
    border-radius:18px;
}

.button-row-modal span{
    display:block;
    color:#dbeafe;
    margin-bottom:8px;
    font-size:14px;
}

.submit-btn{
    width:100%;
    margin-top:26px;
    background:linear-gradient(90deg,#ff3636,#ffb247);
    color:#000;
    border:none;
    border-radius:16px;
    padding:18px;
    font-size:20px;
    font-weight:900;
    cursor:pointer;
}

@media(max-width:700px){
    .button-row-modal{
        grid-template-columns:1fr;
    }
}

.add-btn{
    margin-top:16px;
    background:linear-gradient(90deg,#ff3636,#ffb247);
    color:#000;
    border:none;
    border-radius:16px;
    padding:15px 24px;
    font-size:17px;
    font-weight:900;
    cursor:pointer;
}

.remove-btn{
    background:#4b1717;
    color:#ff8b8b;
    border:none;
    border-radius:16px;
    width:56px;
    font-size:28px;
    font-weight:900;
    cursor:pointer;
}

.modal-modern{
    min-height:925px;
}