/* style.css */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#0b1120;
  color:white;
  display:flex;
}

.sidebar{
  width:280px;
  height:100vh;
  background:#111827;
  position:fixed;
  padding:30px 20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:15px;
  font-size:28px;
  font-weight:bold;
  color:#facc15;
  margin-bottom:50px;
}

.sidebar ul{
  list-style:none;
}

.sidebar ul li{
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px;
  margin-bottom:15px;
  border-radius:18px;
  cursor:pointer;
  transition:0.3s;
  color:#cbd5e1;
}

.sidebar ul li:hover,
.sidebar .active{
  background:#facc15;
  color:#111827;
  font-weight:bold;
}

.main{
  margin-left:280px;
  width:100%;
  padding:30px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.topbar h1{
  font-size:42px;
}

.topbar p{
  color:#94a3b8;
  margin-top:5px;
}

.top-right{
  display:flex;
  align-items:center;
  gap:15px;
}

.clock-box{
  background:#1e293b;
  padding:14px 18px;
  border-radius:15px;
  color:#facc15;
  display:flex;
  gap:10px;
  align-items:center;
}

.export-btn{
  border:none;
  padding:14px 20px;
  border-radius:15px;
  background:#facc15;
  color:#111827;
  font-weight:bold;
  cursor:pointer;
}

.hero{
  position:relative;
  height:280px;
  border-radius:30px;
  overflow:hidden;
  background:url('https://images.unsplash.com/photo-1513828583688-c52646db42da?q=80&w=1600&auto=format&fit=crop');
  background-size:cover;
  background-position:center;
  margin-bottom:30px;
}

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
}

.hero-content{
  position:relative;
  z-index:2;
  padding:45px;
}

.hero-content h2{
  font-size:50px;
  margin-bottom:15px;
}

.hero-content p{
  max-width:600px;
  line-height:1.8;
  margin-bottom:25px;
}

.hero-content button{
  border:none;
  padding:15px 25px;
  border-radius:15px;
  background:#facc15;
  font-weight:bold;
  cursor:pointer;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-bottom:30px;
}

.card{
  padding:30px;
  border-radius:25px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-8px);
}

.card h1{
  font-size:42px;
  margin-top:10px;
}

.card i{
  font-size:50px;
  opacity:0.3;
}

.green{
  background:linear-gradient(135deg,#16a34a,#22c55e);
}

.orange{
  background:linear-gradient(135deg,#ea580c,#f97316);
}

.red{
  background:linear-gradient(135deg,#dc2626,#ef4444);
}

.blue{
  background:linear-gradient(135deg,#2563eb,#3b82f6);
}

.table-box,
.content-box{
  background:#111827;
  padding:25px;
  border-radius:25px;
}

.table-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.table-header input,
.form-box input,
.form-box select{
  background:#1e293b;
  border:none;
  padding:14px;
  border-radius:14px;
  color:white;
}

.table-scroll{
  overflow:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  padding:18px;
  text-align:left;
}

th{
  color:#94a3b8;
}

tbody tr{
  border-top:1px solid rgba(255,255,255,0.05);
}

tbody tr:hover{
  background:#1e293b;
}

.status{
  padding:8px 14px;
  border-radius:30px;
  font-size:13px;
  font-weight:bold;
}

.hadir{
  background:#166534;
}

.telat{
  background:#9a3412;
}

.belum{
  background:#991b1b;
}

.hidden{
  display:none;
}

.staff-grid,
.report-grid,
.setting-box{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:25px;
}

.staff-card,
.report-card{
  background:#1e293b;
  padding:25px;
  border-radius:20px;
  text-align:center;
}

.form-box{
  display:grid;
  gap:15px;
  margin-top:25px;
}

.form-box button,
.setting-box button{
  border:none;
  padding:15px;
  border-radius:14px;
  background:#facc15;
  color:#111827;
  font-weight:bold;
  cursor:pointer;
}

.light{
  background:white;
  color:black;
}

@media(max-width:1000px){

  .sidebar{
    display:none;
  }

  .main{
    margin-left:0;
    padding:20px;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }

  .hero-content h2{
    font-size:36px;
  }

}

