/* ========================= */
/* style.css */
/* ========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#dfe7ef;
  padding:25px;
}

.container{
  width:100%;
}

/* HEADER */

.header{
  background:linear-gradient(135deg,#7cc6ff,#9fd4ff);
  padding:30px;
  border-radius:20px;
  color:white;
  text-align:center;
  margin-bottom:25px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.header h1{
  font-size:34px;
  margin-bottom:10px;
}

.header h2{
  font-size:28px;
}

/* LAYOUT */

.dashboard-top,
.dashboard-bottom{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:25px;
}

/* CARD */

.card,
.table-card,
.chart-card{
  background:#f5f7fa;
  padding:20px;
  border-radius:20px;
  flex:1;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

/* TITLE */

.division-title,
.table-title{
  background:#8ecbff;
  padding:14px;
  border-radius:12px;
  margin-bottom:20px;
  text-align:center;
  font-weight:bold;
  color:#21445f;
}

/* STATS */

.stats{
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
}

.box{
  background:white;
  width:180px;
  padding:20px;
  border-radius:15px;
  text-align:center;
  border:2px solid #dce7f0;
}

.box p{
  margin-bottom:10px;
  color:#4a6075;
  font-size:14px;
}

.box h1{
  color:#6bb6ff;
  font-size:50px;
}

/* TABLE */

table{
  width:100%;
  border-collapse:collapse;
}

thead{
  background:#7bbfff;
  color:white;
}

th,
td{
  padding:14px;
  text-align:center;
}

tbody tr{
  background:white;
}

tbody tr:nth-child(even){
  background:#edf4fb;
}

tbody tr:hover{
  background:#dceeff;
}

/* CHART */

.chart-container{
  width:100%;
  max-width:350px;
  margin:auto;
}

.chart-card{
  min-height:450px;
}

.chart-card h2{
  text-align:center;
  margin-bottom:20px;
  color:#264a68;
}

/* STATUS */

.success{
  background:#d5f7e3;
  color:#1d7a46;
  padding:6px 12px;
  border-radius:20px;
  font-weight:bold;
}

.danger{
  background:#ffdada;
  color:#b42323;
  padding:6px 12px;
  border-radius:20px;
  font-weight:bold;
}

/* RESPONSIVE */

@media(max-width:768px){

  .box{
    width:100%;
  }

}

#yearTrendChart{
  max-height: 400px;
}

/* ========================= */
/* TABLE SCROLL PEKERJA */
/* ========================= */

.worker-card{
  margin-bottom:25px;
}

.table-scroll{
  max-height:350px;
  overflow-y:auto;
  border-radius:15px;
}

/* SCROLLBAR */

.table-scroll::-webkit-scrollbar{
  width:8px;
}

.table-scroll::-webkit-scrollbar-track{
  background:#edf4fb;
  border-radius:10px;
}

.table-scroll::-webkit-scrollbar-thumb{
  background:#9fd4ff;
  border-radius:10px;
}

.table-scroll::-webkit-scrollbar-thumb:hover{
  background:#6bb6ff;
}

/* ========================= */
/* SEARCH PEKERJA */
/* ========================= */

.worker-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.worker-header .table-title{
  margin-bottom:0;
  flex:1;
}

#searchWorker{
  padding:12px 15px;
  border:none;
  border-radius:12px;
  outline:none;
  width:260px;
  background:white;
  border:2px solid #cfe3f5;
  font-size:14px;
  transition:0.3s;
}

#searchWorker:focus{
  border-color:#6bb6ff;
  box-shadow:0 0 10px rgba(107,182,255,0.3);
}