body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f9ff;
  color: #333;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* .sidebar{
  width:250px;
  background:#1e293b;
  color:white;
  padding:20px;
  box-sizing:border-box;
  box-shadow:2px 0 10px rgba(0,0,0,.1);
} */

.sidebar {

  width: 250px;

  transition: .25s;

  overflow: hidden;

}

.layout.collapsed .sidebar {

  width: 70px;

}

.layout.collapsed .sidebar-header {

  display: none;

}

.sidebar button {

  width: 100%;

  display: flex;

  align-items: center;

  gap: 12px;

  border: none;

  background: none;

  color: white;

  padding: 12px;

  border-radius: 8px;

  cursor: pointer;

  margin-bottom: 5px;

  transition: .25s;

}

.material-symbols-rounded {

  font-size: 22px;

  flex-shrink: 0;

}

.menu-icon {

  width: 24px;

  text-align: center;

  font-size: 18px;

}

.layout.collapsed .sidebar button {

  justify-content: center;


}

.menu-text {

  white-space: nowrap;

}

.layout.collapsed .menu-text {

  display: none;

}

.toggle-sidebar {

  border: none;

  background: none;

  font-size: 22px;

  cursor: pointer;

  margin-right: auto;

  color: #334155;

  padding: 6px 10px;

  border-radius: 8px;

}

.toggle-sidebar:hover {

  background: #f1f5f9;

}

.sidebar h2 {
  margin-top: 0;
  font-size: 20px;
}

/* .sidebar button{
  width:100%;
  text-align:left;
  border:none;
  background:none;
  color:white;
  padding:12px;
  border-radius:8px;
  cursor:pointer;
  margin-bottom:5px;
} */

/* .sidebar button:hover{
  background:rgba(255,255,255,.1);
} */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}



#content {
  padding: 24px;
  flex: 1;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(21,101,192,.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

th {
  background: #f8fafc;
  font-weight: 600;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #f9fafb;
}

input,
select {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.btn-primary {
  background: #1565c0;
  color: white;
}

.btn-primary:hover {
  background: #0d47a1;
}

.sidebar {
  width: 250px;
 background: #1565c0;
  color: white;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

.sidebar-menu {
  flex: 1;
}

.menu-btn {

  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;

  border: none;
  border-radius: 10px;

  background: transparent;
  color: white;

  text-align: left;
  cursor: pointer;

  transition: .2s;
}

.menu-btn:hover {

  background:
    rgba(255, 255, 255, .1);

}

#logoutBtn {

  width: 100%;

  padding: 12px;

  border: none;

  border-radius: 10px;

  background: #0d47a1;
  color: white;

  cursor: pointer;

}

#logoutBtn:hover {

  background: #08306b;

}

.sidebar-header {

  margin-bottom: 30px;
  padding-bottom: 20px;

  border-bottom:
    1px solid rgba(255, 255, 255, .15);

}

.sidebar-header h2 {

  margin: 0;

  font-size: 28px;

  font-weight: 700;

}

.sidebar-header small {

  display: block;

  margin-top: 4px;

  opacity: .8;

}

.header h3 {

  margin: 0;

  font-size: 24px;

}

.badge {

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 600;

}

.badge-success {

  background: #dcfce7;
  color: #166534;

}

.badge-danger {

  background: #fee2e2;
  color: #991b1b;

}

.modal-overlay {

  position: fixed;
  inset: 0;

  background:
    rgba(0, 0, 0, .4);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999;
}

.modal {

  background: white;

  width: min(1000px, 95vw);

  max-height: 90vh;

  overflow: auto;

  border-radius: 12px;

  padding: 24px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .15);

}

.modal-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;

}

#pagination {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 8px;

  margin-top: 25px;

}

#pagination button {

  min-width: 40px;

  height: 40px;

  border: none;

  border-radius: 10px;

  cursor: pointer;

  transition: .2s;

}

.page-btn {

  background: white;

  border: 1px solid #d1d5db !important;

}

.page-btn:hover {

  background: #f3f4f6;

}

.page-btn.active {

  background: #2563eb;

  color: white;

  font-weight: 600;

}

#prevPage,
#nextPage {

  background: #2563eb;

  color: white;

}

#prevPage:hover:not(:disabled),
#nextPage:hover:not(:disabled) {

  background: #1d4ed8;

}

#prevPage:disabled,
#nextPage:disabled {

  background: #cbd5e1;

  cursor: not-allowed;

}

.login-page{

    min-height:100vh;

    background-image:url("/assets/img/login-bg.png");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    display:flex;

    justify-content:center;

    align-items:center;

    min-height: 100hv;
    padding-right:8%;
    

}

.login-card{

    width:420px;

    padding:40px;

    border-radius:18px;

    background:rgba(255,255,255,.90);

    backdrop-filter:blur(10px);

    box-shadow:0 12px 35px rgba(0,0,0,.18);

}

.login-card h2{

    margin:0;

    font-size:30px;

    color:#0d47a1;

}

.login-card p{

    margin:8px 0 24px;

    color:#666;

}

.login-card input{

    width:100%;

    padding:14px 16px;

    margin-bottom:16px;

    border-radius:10px;

    border:1px solid #d9d9d9;

    font-size:15px;

    box-sizing:border-box;

}

.login-card button{

    width:100%;

    padding:14px;

    border:none;

    border-radius:10px;

    background:#1565c0;

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.login-card button:hover{

    background:#0d47a1;

}
.header {

  background: white;

  padding: 20px 30px;

  display: flex;

  justify-content: flex-end;

  align-items: center;

  border-bottom: 1px solid #e5e7eb;

  box-shadow:
    0 1px 3px rgba(0, 0, 0, .05);

}

.header-user {

  font-size: 15px;

  color: #475569;

}

.header-user strong {

  color: #0f172a;

}

.toolbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  margin-bottom: 20px;

}

#searchPegawai {

  flex: 1;

  max-width: 400px;

  padding: 12px 16px;

  border: 1px solid #d1d5db;

  border-radius: 10px;

  font-size: 14px;

}

#btnTambahPegawai {

  background: #2563eb;

  color: white;

  padding: 12px 18px;

  border: none;

  border-radius: 10px;

  font-weight: 600;

  white-space: nowrap;

  transition: .2s;

}

#btnTambahPegawai:hover {

  background: #1d4ed8;

}

.card h2 {

  margin-top: 0;

  margin-bottom: 20px;

}

.badge-warning {

  background: #fef3c7;
  color: #92400e;

}

.badge-primary {

  background: #dbeafe;
  color: #1d4ed8;

}

.peserta-container {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 12px;

}

.peserta-chip {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 8px 12px;

  border-radius: 999px;

  background: #dbeafe;

  color: #1e3a8a;

  font-size: 14px;

}

.peserta-chip button {

  background: none;

  border: none;

  cursor: pointer;

  color: #dc2626;

  font-weight: bold;

  padding: 0;

}

.pengaju {

  background: #dcfce7;

  color: #166534;

}

#hasilCariPegawai {

  margin-top: 6px;

  border: 1px solid #ddd;

  border-radius: 10px;

  overflow: hidden;

  background: white;

}

.hasil-item {

  padding: 10px 14px;

  cursor: pointer;

}

.hasil-item:hover {

  background: #eff6ff;

}

.riwayat-card {

  background: white;

  border-radius: 16px;

  padding: 20px;

  margin-bottom: 18px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);

}

.riwayat-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 16px;

}

.riwayat-body {

  display: flex;

  gap: 24px;

  flex-wrap: wrap;

  color: #555;

  margin-bottom: 18px;

}

.riwayat-footer {

  display: flex;

  justify-content: flex-end;

}

.owner-tag {

  background: #dbeafe;

  color: #1d4ed8;

  padding: 5px 12px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 600;

}

.pdf-preview {

  margin-top: 12px;

  border: 1px solid #ddd;

  border-radius: 10px;

  overflow: hidden;

}

.detail-layout {

  display: grid;

  grid-template-columns:
    320px 1fr;

  gap: 20px;

}

@media(max-width:768px) {

  .detail-layout {

    grid-template-columns: 1fr;

  }

  iframe {

    height: 350px;

  }

}

.btn-danger {

  background: #dc2626;
  color: white;

}

.btn-danger:hover {

  background: #b91c1c;

}

.saldo-cuti-card {

  background: #fff;

  border-radius: 10px;

  padding: 16px;

  margin-bottom: 20px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);

}

.saldo-cuti-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

}

.saldo-item {

  background: #f5f7fb;

  border-radius: 8px;

  padding: 12px;

  text-align: center;

}

.saldo-item h4 {

  margin: 0;

  font-size: 13px;

  color: #666;

}

.saldo-item p {

  margin: 8px 0 0;

  font-size: 22px;

  font-weight: bold;

}

.dashboard-card {

  background: #fff;

  border-radius: 12px;

  padding: 24px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);

}

.dashboard-title {

  font-size: 20px;

  font-weight: 600;

  margin-bottom: 25px;

}

.timeline {

  position: relative;

  margin-left: 20px;

}

.timeline::before {

  content: "";

  position: absolute;

  left: 18px;

  top: 0;

  bottom: 0;

  width: 2px;

  background: #d6dbe5;

}

.timeline-item {

  display: flex;

  gap: 20px;

  position: relative;

  margin-bottom: 28px;

}

.timeline-icon {

  width: 38px;

  height: 38px;

  border-radius: 50%;

  background: #2c7be5;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 18px;

  flex-shrink: 0;

  z-index: 2;

}

.timeline-icon.success {

  background: #28a745;

}

.timeline-content h4 {

  margin: 0 0 6px;

  font-size: 16px;

}

.timeline-content p {

  margin: 0;

  color: #666;

  line-height: 1.5;

  font-size: 14px;

}

.dashboard-info {

  display: flex;

  gap: 15px;

  align-items: flex-start;

  background: #eef6ff;

  border-left: 5px solid #0d6efd;

  padding: 16px;

  border-radius: 8px;

  margin-bottom: 25px;

}

.dashboard-info-icon {

  font-size: 26px;

}

.dashboard-info strong {

  display: block;

  margin-bottom: 6px;

  color: #0d47a1;

}

.dashboard-info p {

  margin: 0;

  color: #555;

  line-height: 1.6;

}

.modal-detail {

  width: 1100px;
  max-width: 95vw;
  max-height: 90vh;
  border: none;
  border-radius: 12px;
  padding: 0;
  flex-direction: column;

}

.modal-detail::backdrop {

  background: rgba(0, 0, 0, .4);

}

#modalDetailBody {

 flex: 1;
  overflow-y: auto;

  padding: 24px;
  box-sizing: border-box;
}

.modal-footer {

  padding: 15px 25px;

  display: flex;

  justify-content: flex-end;

  border-top: 1px solid #eee;

}

.modal-action {

  margin-top: 30px;

  display: flex;

  flex-direction: column;

  gap: 15px;

}

.btn-download {

  width: 260px;

  margin: 0 auto;

  padding: 12px;

  background: #2563eb;

  color: white;

  border: none;

  border-radius: 8px;

  font-weight: 600;

  cursor: pointer;

}

.action-bottom {

  display: flex;

  justify-content: center;

  gap: 15px;

}

.btn-success,
.btn-danger {

  min-width: 200px;

  padding: 12px 18px;

  border: none;

  border-radius: 8px;

  color: white;

  font-weight: 600;

  cursor: pointer;

}

.btn-success {

  background: #16a34a;

}

.btn-danger {

  background: #dc2626;

}

.detail-container {

  display: flex;

  flex-direction: column;

  gap: 20px;

}

.detail-card {

  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  padding: 20px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);

}

.card-title {

  font-size: 16px;

  font-weight: 600;

  color: #1e293b;

  margin-bottom: 15px;

  padding-bottom: 10px;

  border-bottom: 1px solid #e5e7eb;

}

.table-detail {

  width: 100%;

  border-collapse: collapse;

}

.table-detail td {

  padding: 10px 5px;

  border-bottom: 1px solid #f1f5f9;

}

.table-detail td:first-child {

  width: 220px;

  color: #64748b;

  font-weight: 600;

}

.btn-download {

  display: block;

  width: 280px;

  margin: 0 auto 20px;

  padding: 13px;

  background: #2563eb;

  color: white;

  border: none;

  border-radius: 8px;

  cursor: pointer;

  font-weight: 600;

  transition: .2s;

}

.btn-download:hover {

  background: #1d4ed8;

}

.action-row {

  display: flex;

  justify-content: center;

  gap: 15px;

}

.btn-success,
.btn-danger {

  min-width: 220px;

  padding: 12px;

  border: none;

  border-radius: 8px;

  color: white;

  cursor: pointer;

  font-weight: 600;

  transition: .2s;

}

.btn-success {

  background: #16a34a;

}

.btn-success:hover {

  background: #15803d;

}

.btn-danger {

  background: #dc2626;

}

.btn-danger:hover {

  background: #b91c1c;

}

.preview-file{

    width:100%;

    height:650px;

    border:none;

    border-radius:10px;

    background:#f8fafc;

}

.preview-image{

    width:100%;

    max-height:650px;

    object-fit:contain;

}


.modal-header h2{

    margin:0;

}

.btn-close-modal{

    width:40px;

    height:40px;

    border:none;

    border-radius:50%;

    background:#f1f5f9;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:.2s;

}

.btn-close-modal:hover{

    background:#e2e8f0;

}

.btn-close-modal .material-symbols-outlined{

    font-size:22px;

    color:#475569;

}

.btn:disabled {

  opacity: .7;

  cursor: not-allowed;

  pointer-events: none;

}

.download-wrapper{
    display:flex;
    justify-content:center;
    margin-top:16px;
}

.download-wrapper .btn-download{
    min-width:240px;
}

.menu-btn{

    width:100%;

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 16px;

    border:none;

    border-radius:12px;

    background:transparent;

    color:#fff;

    cursor:pointer;

    transition:.2s;

}

.menu-btn:hover{

    background:rgba(255,255,255,.12);

}
.menu-btn.active{

    background:rgba(255,255,255,.18);

    border-left:4px solid #fff;

    font-weight:600;

    color:#fff;

}