@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins,sans-serif;
}

body{
background:#F5F7FA;
}

.container{
    width:90%;
    margin:10px auto;
}
/* NAVBAR */

.navbar{
position:fixed;
top:0;
width:100%;
height:80px;
background:#fff;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 60px;
box-shadow:0 3px 15px rgba(0,0,0,.08);
z-index:1000;
}

.logo{
display:flex;
align-items:center;
gap:12px;
}

.logo-img{
width:55px;
}

.logo h2{
color:#2563EB;
}

.logo small{
color:#64748B;
}

.navbar ul{
display:flex;
list-style:none;
gap:25px;
}

.navbar a{
text-decoration:none;
font-weight:600;
color:#334155;
}

.active{
color:#2563EB;
}

/* HERO */

.hero{
height:60vh;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
background:linear-gradient(135deg,#2563EB,#60A5FA);
overflow:hidden;
margin-top:100px;
}

.hero::before{

content:"";

position:absolute;

inset:0;

background:url("../assets/img/bg/home-bg.png") center/cover;

opacity:.80;

}

.hero-content{
position:relative;
color:#fff;
z-index:2;
}

.hero h1{
font-size:48px;
}

.hero p{
margin-top:15px;
font-size:18px;
}

/* STAT */

.statistik{
display:flex;
justify-content:center;
gap:30px;
padding:50px;
}

.stat-card{
background:white;
padding:30px;
border-radius:15px;
text-align:center;
width:250px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.stat-card h2{
color:#2563EB;
font-size:40px;
}

/* SEARCH */
/* SEARCH */

/* SEARCH + BUTTON */

.search-box{
    width:95%;
    margin:30px auto;
    display:flex;
    align-items:center;
    gap:15px;
}

#searchRW{
    flex:1;
    height:55px;
    padding:0 20px;
    border:1px solid #dcdcdc;
    border-radius:12px;
    font-size:16px;
    outline:none;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

#searchRW:focus{
    border-color:#2563EB;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

.btn-tambah{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    height:55px;
    padding:0 28px;
    background:#16a34a;
    color:#fff;
    text-decoration:none;
    border-radius:12px;
    font-weight:600;
    transition:.3s;
    white-space:nowrap;
}

.btn-tambah:hover{
    background:#15803d;
    transform:translateY(-2px);
}

/* CARD */

.rw-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
gap:25px;
}

.rw-card{
background:white;
padding:25px;
border-radius:15px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
transition:.3s;
}

.rw-card:hover{
transform:translateY(-8px);
}

.rw-card h2{
color:#2563EB;
margin-bottom:8px;
}

.rw-card span{
background:#2563EB;
color:white;
padding:5px 12px;
border-radius:20px;
font-size:13px;
}

.rw-card hr{
margin:18px 0;
}

.rw-card p{
margin:10px 0;
line-height:1.7;
}

footer{
margin-top:60px;
padding:25px;
text-align:center;
background:#1E3A8A;
color:white;
}

.table-container{

    width:95%;

    margin:40px auto;

    overflow-x:auto;

}

.rw-table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.rw-table thead{

    background:#2563EB;

    color:#fff;

}

.rw-table th{

    padding:15px;

    text-align:center;

}

.rw-table td{

    padding:12px;

    border-bottom:1px solid #eee;

    text-align:center;

}

.rw-table tbody tr:hover{

    background:#F1F5F9;

}

/* Tombol Tambah RW */
.aksi-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.btn-edit,
.btn-hapus{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:8px;
    color:#fff;
    text-decoration:none;
}

.btn-edit{
    background:#0d6efd;
}

.btn-edit:hover{
    background:#0b5ed7;
}

.btn-hapus{
    background:#dc3545;
}

.btn-hapus:hover{
    background:#bb2d3b;
}
.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#2563EB;
    font-size:30px;
    cursor:pointer;
}


/* ==========================================
   RESPONSIVE NAVBAR
========================================== */

@media (max-width:992px){

    .navbar{
        padding:0 20px;
        height:80px;
    }

    .logo-img{
        width:45px;
    }

    .logo h2{
        font-size:22px;
    }

    .logo small{
        font-size:13px;
    }

    .navbar ul{
        display:flex;
        align-items:center;
        gap:15px;
    }

    .navbar ul li a{
        font-size:14px;
    }

    .hero{
        margin-top:80px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:16px;
    }

    .statistik{
        flex-wrap:wrap;
        gap:20px;
    }

    .search-box{
        width:95%;
    }

}
/* =====================================
   RESPONSIVE MOBILE
===================================== */

@media (max-width:768px){

    /* Navbar */
    .navbar{
        padding:0 15px;
        height:80px;
        position:fixed;
    }

    .logo{
        gap:8px;
    }

    .logo-img{
        width:40px;
    }

    .logo h2{
        font-size:18px;
    }

    .logo small{
        font-size:11px;
    }

    /* Tombol Hamburger */
    .menu-toggle{
        display:block;
        background:none;
        border:none;
        color:#2563EB;
        font-size:30px;
        cursor:pointer;

        position:absolute;
        right:20px;
        top:50%;
        transform:translateY(-50%);
        z-index:1001;
    }

    /* Sembunyikan menu desktop */
    #navMenu{
        display:none;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        box-shadow:0 5px 20px rgba(0,0,0,.15);
        z-index:1000;
    }

    /* Tampilkan ketika tombol diklik */
    #navMenu.active{
        display:flex;
    }

    #navMenu li{
        width:100%;
        list-style:none;
        border-bottom:1px solid #eee;
    }

    #navMenu li a{
        display:block;
        padding:15px;
        text-align:center;
        font-size:14px;
    }

    /* Hero */
    .hero{
        margin-top:80px;
        height:260px;
    }

    .hero h1{
        font-size:32px;
        line-height:1.2;
    }

    .hero p{
        font-size:14px;
        padding:0 20px;
        line-height:1.6;
    }

    /* Statistik */
    .statistik{
        padding:30px 15px;
        flex-direction:column;
        align-items:center;
        gap:20px;
    }

    .stat-card{
        width:100%;
        max-width:320px;
    }

    /* Search */
    .search-box{
        width:95%;
        flex-direction:column;
    }

    .search-box input{
        width:100%;
    }

    /* Tabel */
    .table-container{
        width:100%;
        overflow-x:auto;
    }

}