body{
    margin:0;
    font-family:'Poppins', sans-serif;
    background:#f4f8f6;
}

/* HEADER */
header{
    background:linear-gradient(135deg,#0f5132,#198754);
    color:white;
    padding:60px 20px;
    text-align:center;
}

header h1{
    margin:0;
    font-size:38px;
}

/* CONTAINER */
.container{
    width:100%;
    max-width:1100px;
    margin:auto;
    padding:20px;
    box-sizing:border-box;
}


/* STATISTICS */
.stats{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:-40px;
    flex-wrap:wrap;
}

.card{
    background:white;
    padding:25px 35px;
    border-radius:14px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    text-align:center;
    min-width:220px;
}

.card h2{
    margin:0;
    font-size:36px;
    color:#198754;
}

/* SAMBUTAN */
.sambutan{
    margin-top:60px;
    background:white;
    padding:40px;
    border-radius:14px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.sambutan h3{
    color:#0f5132;
}

/* BUTTON */
.btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 22px;
    background:#198754;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:0.3s;
}

.btn:hover{
    background:#157347;
}

/* FOOTER */
footer{
    margin-top:60px;
    padding:25px;
    text-align:center;
    background:#0f5132;
    color:white;
}

/* SAMBUTAN PROFIL */
.sambutan-wrapper{
    display:flex;
    gap:30px;
    align-items:flex-start;
    flex-wrap:wrap;
}

.sambutan-foto{
    flex:0 0 180px;
    text-align:center;
}

.sambutan-foto img{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #198754;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

/* ============================= */
/* SAMBUTAN INDEX */
/* ============================= */

.sambutan-flex{
    display:flex;
    gap:30px;
    align-items:center;
    flex-wrap:wrap;
}

.sambutan-foto-index img{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #198754;
}

.sambutan-text-index{
    flex:1;
    min-width:250px;
}

/* agar topbar selalu rapi */
.topbar{
    position:sticky;
    top:0;
    z-index:999;
}


.nama-ketua{
    margin-top:12px;
    font-weight:600;
    color:#0f5132;
}

.jabatan{
    font-size:14px;
    color:#666;
}

.sambutan-text{
    flex:1;
}

/* ============================= */
/* TOPBAR */
/* ============================= */

.topbar{
    background:white;
    padding:12px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.logo{
    font-weight:600;
    color:#0f5132;
}

.login-btn{
    background:#198754;
    color:white;
    padding:8px 18px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

.login-btn:hover{
    background:#157347;
}

/* ============================= */
/* HERO ISLAMIC */
/* ============================= */

.hero{
    position:relative;
    color:white;
    padding:70px 20px 60px 20px;
    overflow:hidden;
    text-align:center;
}

/* background gradient */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,#0f5132,#198754);
    z-index:0;
}

/* MOTIF ISLAMIC PATTERN */
.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.05'%3E%3Cpath d='M30 0l8 15 15 8-15 8-8 15-8-15-15-8 15-8z'/%3E%3C/g%3E%3C/svg%3E");
    z-index:0;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:1100px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
}

/* FOTO HERO */
.hero-foto img{
    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid white;
}

/* TEXT HERO */
.hero-text h1{
    margin:0;
    font-size:36px;
}

.hero-text p{
    opacity:0.9;
}

.hero h1{
    margin:0;
    font-size:36px;
    line-height:1.3;
}

.hero p{
    margin-top:8px;
    margin-bottom:0;
    line-height:1.5;
    max-width:650px;
    margin-left:auto;
    margin-right:auto;
}

@media(max-width:768px){

header{
    padding:40px 15px;
}

header h1{
    font-size:26px;
}

}

.stats{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:-40px;
    flex-wrap:wrap;
}

@media(max-width:600px){
.stats{
    flex-direction:column;
    align-items:center;
    margin-top:20px;
}

.card{
    width:100%;
    max-width:320px;
}
}

@media(max-width:768px){

.sambutan-flex{
    flex-direction:column;
    text-align:center;
}

.sambutan-foto-index img{
    width:130px;
    height:130px;
}

.sambutan{
    padding:25px;
}

}

@media(max-width:600px){

.topbar{
    padding:12px 15px;
}

.logo{
    font-size:14px;
}

.login-btn{
    padding:6px 12px;
    font-size:13px;
}

}

*{
    box-sizing:border-box;
}

body{
    overflow-x:hidden;
}

/* ============================= */
/* FORM AUTH */
/* ============================= */

.auth-container{
    max-width:400px;
    margin:60px auto;
    background:white;
    padding:35px;
    border-radius:12px;
    box-shadow:0 5px 25px rgba(0,0,0,0.08);
}

.auth-container h2{
    text-align:center;
    margin-bottom:20px;
    color:#0f5132;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:5px;
    font-size:14px;
}

.form-group input{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
}

.auth-link{
    text-align:center;
    margin-top:15px;
    font-size:14px;
}

.alert{
    background:#ffdede;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    font-size:14px;
}

/* ========================= */
/* TYPOGRAPHY GLOBAL */
/* ========================= */

h2{
    margin-top:30px;
    margin-bottom:20px;
    color:#0f5132;
}

/* ========================= */
/* CARD GRID */
/* ========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-top:20px;
}

/* ========================= */
/* CARD DPW */
/* ========================= */

.dpw-card{
    background:white;
    border-radius:14px;
    padding:20px;
    box-shadow:0 6px 20px rgba(0,0,0,0.07);
    transition:0.3s;
}

.dpw-card:hover{
    transform:translateY(-5px);
}

.dpw-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
}

.dpw-stats{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-size:14px;
}

/* ========================= */
/* TABLE MODERN */
/* ========================= */

.table-modern{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.table-modern th{
    background:#198754;
    color:white;
    padding:14px;
    text-align:left;
}

.table-modern td{
    padding:14px;
    border-bottom:1px solid #eee;
}

.table-modern tr:hover{
    background:#f7fdf9;
    cursor:pointer;
}

/* ========================= */
/* MODAL MODERN */
/* ========================= */

.modal-bg{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(4px);
}

.modal-box{
    background:white;
    max-width:420px;
    margin:80px auto;
    padding:25px;
    border-radius:14px;
    animation:fadeIn 0.25s ease;
}

@keyframes fadeIn{
    from{transform:translateY(20px);opacity:0}
    to{transform:translateY(0);opacity:1}
}

.modal-box h3{
    margin-top:0;
    color:#0f5132;
}

/* ========================= */
/* BUTTON GROUP */
/* ========================= */

.btn-group{
    display:flex;
    gap:8px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media(max-width:768px){

.modal-box{
    margin:40px 15px;
}

.table-modern th,
.table-modern td{
    padding:10px;
    font-size:14px;
}

}
/* ===================== */
/* DASHBOARD LAYOUT */
/* ===================== */

.dashboard{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */
.sidebar{
    width:240px;
    background:#0f5132;
    color:white;
    padding:25px 15px;
}

.sidebar h3{
    margin-top:0;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:10px;
    border-radius:6px;
    margin-bottom:5px;
}

.sidebar a:hover{
    background:#198754;
}

/* CONTENT */
.main{
    flex:1;
    background:#f4f8f6;
}

.topbar-dashboard{
    background:white;
    padding:15px 25px;
    border-bottom:1px solid #eee;
}

/* PAGE CONTENT */
.page{
    padding:25px;
}

/* ===================== */
/* SEARCH BAR */
/* ===================== */

.search-box{
    margin-bottom:15px;
}

.search-box input{
    width:100%;
    max-width:300px;
    padding:10px;
    border-radius:8px;
    border:1px solid #ddd;
}

/* ===================== */
/* PAGINATION */
/* ===================== */

.pagination{
    margin-top:20px;
    display:flex;
    gap:8px;
}

.pagination a{
    padding:8px 12px;
    background:white;
    border-radius:6px;
    text-decoration:none;
    border:1px solid #ddd;
}

.pagination a.active{
    background:#198754;
    color:white;
}

/* MOBILE */
@media(max-width:768px){
.sidebar{
    display:none;
}
.page{
    padding:15px;
}
}
/* ============================= */
/* MOBILE TABLE → CARD */
/* ============================= */

@media(max-width:768px){

.table-modern,
.table-modern thead,
.table-modern tbody,
.table-modern th,
.table-modern td,
.table-modern tr{
display:block;
}

.table-modern thead{
display:none;
}

.table-modern tr{
background:white;
margin-bottom:14px;
border-radius:14px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
padding:14px 16px;
border-left:5px solid #198754;
}

.table-modern td{
border:none;
padding:6px 0;
font-size:14px;
}

.table-modern td::before{
content:attr(data-label);
display:block;
font-size:11px;
font-weight:600;
color:#888;
margin-bottom:2px;
text-transform:uppercase;
letter-spacing:0.5px;
}

.table-modern tr:active{
transform:scale(0.98);
}

}

