@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:20px;
}

.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-box{
width:90%;
margin:auto;
margin-bottom:30px;
}

.search-box{
    width:90%;
    margin:auto;
    margin-bottom:30px;
    display:flex;
    align-items:center;
    gap:15px;
}

.search-box input{
    flex:1;
    padding:15px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:16px;
}

/* CARD */

.rt-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
gap:25px;
}

.rt-card{
background:white;
padding:25px;
border-radius:15px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
transition:.3s;
}

.rt-card:hover{
transform:translateY(-8px);
}

.rt-card h2{
color:#2563EB;
margin-bottom:8px;
}

.rt-card span{
background:#2563EB;
color:white;
padding:5px 12px;
border-radius:20px;
font-size:13px;
}

.rt-card hr{
margin:18px 0;
}

.rt-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;

}

.rt-table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.rt-table thead{

    background:#2563EB;

    color:#fff;

}

.rt-table th{

    padding:15px;

    text-align:center;

}

.rt-table td{

    padding:12px;

    border-bottom:1px solid #eee;

    text-align:center;

}

.rt-table tbody tr:hover{

    background:#F1F5F9;

}



.search-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.btn-tambah{
    background:#198754;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

.btn-edit{
    background:#0d6efd;
    color:white;
    border:none;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
}

.btn-hapus{
    background:#dc3545;
    color:white;
    border:none;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
    margin-left:5px;
}

.btn-edit:hover,
.btn-hapus:hover,
.btn-tambah:hover{
    opacity:.85;
}

.btn-edit{
    display:inline-block;
    background:#0d6efd;
    color:#fff;
    padding:8px 10px;
    border-radius:6px;
    text-decoration:none;
    margin-right:5px;
}

.btn-hapus{
    display:inline-block;
    background:#dc3545;
    color:#fff;
    padding:8px 10px;
    border-radius:6px;
    text-decoration:none;
}

.btn-edit:hover,
.btn-hapus:hover{
    opacity:.8;
}

.menu-toggle{

    display:none;
    background:none;
    border:none;
    color:#2563EB;
    font-size:28px;
    cursor:pointer;

}


/* =====================================
   RESPONSIVE TABLET
===================================== */

@media (max-width:992px){

    .navbar{
        padding:0 20px;
        height:80px;
    }

    .logo-img{
        width:45px;
    }

    .logo h2{
        font-size:22px;
    }

    .logo small{
        font-size:13px;
    }

    /* tombol hamburger muncul */
.menu-toggle{

    display:block;

    position:absolute;

    right:20px;   /* Geser ke kiri */
    top:20px;     /* Sesuaikan tinggi */

    z-index:1001;

}

/* menu desktop disembunyikan */
#navMenu{

    display:none;

    position:absolute;

    top:75px;

    left:0;

    width:100%;

    background:#fff;

    flex-direction:column;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

}

/* ketika tombol ditekan */
#navMenu.active{

    display:flex;

}

#navMenu li{

    width:100%;

    text-align:center;

    border-bottom:1px solid #eee;

}

#navMenu li a{

    display:block;

    padding:15px;

    font-size:14px;

}

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:16px;
    }

    .statistik{
        flex-wrap:wrap;
        gap:20px;
    }

    .search-box{
    width:95%;
}

}


/* =====================================
   RESPONSIVE HP
===================================== */

@media (max-width:768px){

    .navbar{
        padding:0 12px;
        height:75px;
    }

    .logo{
        gap:8px;
    }

    .logo-img{
        width:40px;
    }

    .logo h2{
        font-size:18px;
    }

    .logo small{
        font-size:11px;
    }

    .navbar ul{
        gap:10px;
    }

    .navbar ul li a{
        font-size:12px;
    }

    .hero{
        margin-top:75px;
        height:42vh;
    }

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:14px;
        padding:0 20px;
    }

    .statistik{
        padding:30px 15px;
    }

    .stat-card{
        width:100%;
        max-width:300px;
    }

    .search-box{
    flex-direction:column;
}

    #searchRT{
        width:100%;
    }

}