:root{
    --primary:#2ec27e;
    --primary-dark:#199c61;
    --secondary:#7be0b0;
    --accent:#6ee7b7;
    --bg:#eef6f3;
    --card:rgba(255,255,255,.78);
    --border:rgba(255,255,255,.45);
    --text:#1e293b;
    --text-light:#64748b;
    --shadow:0 20px 50px rgba(15,23,42,.08);
    --radius:22px;
    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    color:var(--text);
    background:linear-gradient(140deg,#f5fff9,#edf7ff,#f7fbff);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
}

.background{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-2;
}

.blur{
    position:absolute;
    border-radius:50%;
    filter:blur(100px);
    opacity:.45;
}

.blur-1{
    width:420px;
    height:420px;
    background:#6ee7b7;
    top:-120px;
    left:-80px;
}

.blur-2{
    width:500px;
    height:500px;
    background:#93c5fd;
    right:-180px;
    bottom:-180px;
}

.hero{
    padding:45px 25px 25px;
}

.hero-top{
    max-width:1280px;
    margin:auto;
}

.hero-title{
    display:flex;
    align-items:center;
    gap:22px;
    padding:28px 35px;
    border-radius:28px;
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.55);
    box-shadow:var(--shadow);
}

.logo-box{
    width:78px;
    height:78px;
    border-radius:22px;
    background:linear-gradient(135deg,var(--primary),#59d69d);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.logo-box img{
    width:56px;
    height:56px;
    object-fit:contain;
}

.title-text h1{
    font-size:2rem;
    font-weight:800;
    color:#163a2c;
    margin-bottom:6px;
}

.title-text p{
    color:var(--text-light);
}

.container{
    width:min(1280px,95%);
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:28px;
    padding-bottom:45px;
}

.dashboard-card,
.content-card{
    background:var(--card);
    backdrop-filter:blur(18px);
    border-radius:var(--radius);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.dashboard-card{
    padding:30px;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:28px;
}

.dashboard-header h2{
    margin-bottom:6px;
}

.dashboard-header span{
    color:var(--text-light);
    font-size:.92rem;
}

.year-box{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.year-box label{
    font-size:.82rem;
    font-weight:600;
    color:var(--text-light);
}

.yearFilter{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.yearBtn{
    border:none;
    border-radius:14px;
    padding:10px 18px;
    background:#fff;
    color:var(--text);
    font-weight:600;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
    transition:var(--transition);
}

.yearBtn:hover{
    transform:translateY(-3px);
}

.yearActive{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
}

.type-selector{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
}

.type-btn{
    border:none;
    background:#fff;
    border-radius:20px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:18px;
    cursor:pointer;
    transition:var(--transition);
    border:2px solid transparent;
    box-shadow:0 10px 28px rgba(0,0,0,.05);
}

.type-btn:hover{
    transform:translateY(-5px);
    border-color:var(--secondary);
    box-shadow:0 18px 35px rgba(46,194,126,.18);
}

.type-btn.active{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
}

.type-btn.active small{
    color:rgba(255,255,255,.92);
}

.icon{
    width:58px;
    height:58px;
    border-radius:16px;
    background:rgba(46,194,126,.12);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    flex-shrink:0;
}

.type-btn.active .icon{
    background:rgba(255,255,255,.18);
}

.type-btn strong{
    display:block;
    margin-bottom:4px;
    font-size:1.02rem;
}

.type-btn small{
    color:var(--text-light);
}

.content-card{
    padding:30px;
}

.content-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:28px;
}

.content-header h2{
    margin-bottom:6px;
}

.content-header p{
    color:var(--text-light);
}

button,
input{
    font-family:"Inter",sans-serif;
}

button{
    cursor:pointer;
    transition:var(--transition);
}

.primary-btn,
.secondary-btn{
    border:none;
    border-radius:14px;
    padding:13px 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:.92rem;
    font-weight:600;
}

.primary-btn{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    box-shadow:0 12px 25px rgba(46,194,126,.28);
}

.primary-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 35px rgba(46,194,126,.35);
}

.secondary-btn{
    background:#fff;
    color:var(--text);
    border:1px solid rgba(0,0,0,.08);
}

.secondary-btn:hover{
    transform:translateY(-3px);
    background:#f8fafc;
}

#btnTambah{
    display:none;
}

input{
    width:100%;
    height:48px;
    border-radius:14px;
    border:1px solid rgba(0,0,0,.08);
    padding:0 16px;
    background:#fff;
    outline:none;
    transition:var(--transition);
    font-size:.92rem;
}

input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(46,194,126,.15);
}
.list-container{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.list-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:20px;
    border-radius:18px;
    background:#fff;
    border:1px solid rgba(0,0,0,.05);
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    transition:var(--transition);
    animation:fadeUp .4s ease both;
}

.list-item:hover{
    transform:translateY(-5px);
    border-color:rgba(46,194,126,.3);
    box-shadow:0 18px 35px rgba(46,194,126,.15);
}

.list-info{
    display:flex;
    align-items:center;
    gap:16px;
    flex:1;
    min-width:0;
}

.list-avatar{
    width:58px;
    height:58px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),#63dca7);
    color:#fff;
    font-size:1.45rem;
    flex-shrink:0;
    box-shadow:0 12px 24px rgba(46,194,126,.25);
}

.list-detail{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.list-detail h4{
    margin:0;
    font-size:1rem;
    font-weight:700;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.list-detail span{
    margin-top:5px;
    font-size:.84rem;
    color:var(--text-light);
}

.preview-btn{
    border:none;
    border-radius:12px;
    padding:11px 20px;
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:#fff;
    font-weight:600;
}

.preview-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 30px rgba(37,99,235,.28);
}

.empty-state{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:70px 20px;
}

.empty-icon{
    width:90px;
    height:90px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),#63dca7);
    color:#fff;
    font-size:2.2rem;
    margin-bottom:20px;
}

.empty-state h3{
    margin-bottom:10px;
}

.empty-state p{
    max-width:380px;
    color:var(--text-light);
    line-height:1.7;
}

.modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    padding:25px;
    background:rgba(15,23,42,.45);
    backdrop-filter:blur(10px);
    z-index:999;
}

.modal-content{
    width:100%;
    max-width:900px;
    max-height:88vh;
    display:flex;
    flex-direction:column;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(18px);
    border-radius:28px;
    overflow:hidden;
    animation:pop .35s ease;
    box-shadow:0 25px 60px rgba(15,23,42,.18);
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:28px 30px;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.modal-header p{
    color:var(--text-light);
    margin-top:6px;
}

.close-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#f1f5f9;
    font-size:18px;
}

.close-btn:hover{
    background:#e2e8f0;
}

.modal-body{
    flex:1;
    overflow-y:auto;
    padding:30px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin-bottom:25px;
}

.form-grid .full{
    grid-column:1/-1;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field label{
    font-size:.88rem;
    font-weight:600;
    color:var(--text-light);
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.section-title h3{
    font-size:1rem;
}

.row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    padding:20px;
    margin-bottom:18px;
    border-radius:18px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 8px 22px rgba(15,23,42,.05);
    animation:fadeUp .35s ease;
}

.modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    padding:24px 30px;
    border-top:1px solid rgba(0,0,0,.06);
}

.loading{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(8px);
    z-index:9999;
}

.loader-card{
    background:#fff;
    border-radius:24px;
    padding:35px;
    text-align:center;
    box-shadow:0 20px 45px rgba(15,23,42,.15);
}

.loader-card p{
    margin-top:18px;
    color:var(--text-light);
    font-weight:600;
}

.spinner{
    width:58px;
    height:58px;
    margin:auto;
    border-radius:50%;
    border:5px solid rgba(46,194,126,.2);
    border-top-color:var(--primary);
    animation:spin .8s linear infinite;
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#b8dcca;
    border-radius:50px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes pop{
    from{
        opacity:0;
        transform:scale(.9);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:900px){

    .dashboard-header,
    .content-header,
    .section-title{
        flex-direction:column;
        align-items:stretch;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .form-grid .full{
        grid-column:auto;
    }

    .row{
        grid-template-columns:1fr;
    }

}

@media(max-width:640px){

    .hero{
        padding:20px 15px;
    }

    .hero-title{
        flex-direction:column;
        text-align:center;
        padding:22px;
    }

    .title-text h1{
        font-size:1.35rem;
    }

    .dashboard-card,
    .content-card{
        padding:20px;
    }

    .yearFilter{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:6px;
    }

    .modal{
        padding:16px;
    }

    .modal-content{
        max-height:92vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer{
        padding:20px;
    }

    .list-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .preview-btn{
        width:100%;
    }

}