/* styles.css - modern minimalist login */
:root {
  --bg: #f3f4f7;
  --card: #ffffff;
  --muted: #7b8091;
  --accent: #4a6cf7;
  --border: #d9dce3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--bg);
  color: #1f2d3d;
}

.centered-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
}

.card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-sub {
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.4rem;
}

.input-group input {
  width: 100%;
  border: 1.6px solid var(--border);
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
  background: #fdfdfd;
  transition: 0.25s;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a0a4af;
  transition: 0.25s;
  font-size: 0.95rem;
  background: white;
  padding: 0 4px;
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
  background: white;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0;
  left: 10px;
  font-size: 0.75rem;
  color: var(--accent);
}

.btn-full {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.btn-full:hover {
  opacity: 0.92;
}

/* ==== DASHBOARD STYLE ==== */

.topbar {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.9rem 0;
}

.topbar-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.topbar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
}

.topbar-user {
  font-size: 0.95rem;
  color: #4a5568;
}

.role {
  font-size: 0.8rem;
  background: #edf2ff;
  color: #4a6cf7;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.logout-link {
  color: #e53e3e;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}

.dash-wrapper {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.dash-card {
  background: white;
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.dash-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.menu-list {
  margin-top: 1.5rem;
}

.menu-item {
  display: block;
  padding: 0.9rem 1rem;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  text-decoration: none;
  color: #344155;
  font-weight: 500;
  transition: 0.2s;
}

.menu-item:hover {
  background: #edf2ff;
  border-color: #c3d0ff;
}

/* ====== TABLE STYLE MODERN ====== */

.table-box {
    overflow-x: auto;
    margin-top: 1.2rem;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}

.table-modern thead {
    background: #f1f3f9;
}

.table-modern th {
    padding: 0.9rem;
    text-align: left;
    font-weight: 600;
    color: #3c4858;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.table-modern td {
    padding: 0.85rem;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.table-modern tr:hover {
    background: #f7faff;
}

.tbl-link {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 600;
}

.tbl-link:hover {
    text-decoration: underline;
}

.tbl-link-del {
    color: #e53e3e;
    font-weight: 600;
}

.tbl-link-del:hover {
    text-decoration: underline;
}

/* Flex header (judul + tombol tambah) */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ===== FIX link button Tambah Pegawai ===== */

.btn-full,
.btn-link {
    text-decoration: none !important;
    background: var(--accent);
    color: #ffffff;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-full:hover,
.btn-link:hover {
    background: #3b5ae0; /* warna hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ==== FORM WIDTH NICE ==== */
.form-wrapper {
    max-width: 600px;
    margin: auto;
}

/* Tombol dua kolom (Simpan + Batal) */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    background: #e2e8f0;
    color: #2d3748;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    flex: 1;
    text-align: center;
    transition: 0.25s;
}

.btn-cancel:hover {
    background: #cbd5e1;
}


.btn-gray span {
    font-weight: 700;
}


.select-group {
    width: 100%;
    border: 1.6px solid var(--border);
    padding: 0.9rem;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 1rem;
    color: #1f2d3d;
    transition: 0.25s;
}

.select-group:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,108,247,0.15);
    outline: none;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2d3d;
}

.select-box {
    width: 100%;
    padding: 0.85rem;
    border: 1.6px solid var(--border);
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 1rem;
    transition: 0.25s;
}

.select-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,108,247,0.15);
    outline: none;
}

.form-group {
    margin-bottom: 1.4rem;
}

.action-links a {
    margin-right: 8px;
    text-decoration: none;
    font-weight: 600;
}

.action-edit {
    color: #2563eb; /* biru */
}

.action-delete {
    color: #dc2626; /* merah */
}

.action-links {
    display: flex;
    gap: 10px;              /* jarak antar link */
}

.action-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.action-edit {
    color: #2563eb;         /* biru */
}

.action-delete {
    color: #dc2626;         /* merah */
}

.action-edit:hover {
    text-decoration: underline;
}

.action-delete:hover {
    text-decoration: underline;
}

.table-uraian {
    max-width: 350px;
    white-space: normal;
    word-wrap: break-word;
}

/* --- BADGE STATUS WO --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    text-transform: capitalize;
}

/* --- Uniform Badge Size --- */
.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    min-width: 90px;         
    text-align: center;      
}


.badge-buat {
    background-color: #4e73df; /* biru */
    box-shadow: 0 2px 4px rgba(78,115,223,0.3);
}

.badge-proses {
    background-color: #f6c23e; /* kuning */
    color: #333;
    box-shadow: 0 2px 4px rgba(246,194,62,0.4);
}

.badge-selesai {
    background-color: #1cc88a; /* hijau */
    box-shadow: 0 2px 4px rgba(28,200,138,0.4);
}

/* --- DETAIL WO CARD --- */
.detail-grid {
    display: grid;
    grid-template-columns: 150px auto;
    row-gap: 10px;
    column-gap: 10px;
    margin-bottom: 25px;
    font-size: 15px;
}

.detail-grid label {
    font-weight: 600;
    color: #333;
}

.detail-grid .value {
    color: #444;
}

.detail-box-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-section {
    padding: 15px 20px;
    background: #f8f9fc;
    border-radius: 12px;
    margin-bottom: 25px;
}

.detail-status {
    margin: 15px 0;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: #e9ecf5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.filter-btn:hover {
    background: #d0d7eb;
}

.filter-btn.active {
    background: #3d6ff4;
    color: white;
}


.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ccd2e3;
    font-size: 14px;
}

.search-btn {
    padding: 10px 20px;
    background: #3d6ff4;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    background: #2d5de0;
}

/* === PAGINATION MODERN === */
/* ===== PAGINATION PREMIUM ===== */
/* ===== PAGINATION FIX ===== */
/* === FIX PAGINATION CSS === */
.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pg-btn {
    padding: 8px 16px;
    background: #e9eeff;
    border-radius: 10px;
    border: 1px solid #c7d3ff;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    color: #2d3dff !important;
    transition: 0.25s ease;
}

.pg-btn:hover {
    background: #d6e0ff;
    border-color: #b6c5ff;
    color: #1b2ced !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.pg-info {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e5ee;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.table-uraian {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tombol Outline Detail */
.btn-outline-detail {
    border: 2px solid #4a67ff;
    color: #4a67ff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s ease;
}

.btn-outline-detail:hover {
    background: #4a67ff;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 103, 255, 0.35);
}


/* dashboard */

.menu-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #e6e6e6;
    background: #f8f9ff;
    border-radius: 12px;
    font-size: 18px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.menu-box:hover {
    background: #e6ecff;
    transform: translateX(4px);
}

.menu-icon {
    font-size: 24px;
}

/* === FIX TOAST SUCCESS TIDAK MUNCUL === */
.toast-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #38c172;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 99999; /* PENTING! */
    opacity: 1;
    transition: all 0.4s ease;
    transform: translateX(0);
}

.stat-box {
    cursor: pointer;
    transition: 0.2s;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.loading {
    padding: 12px;
    color: #555;
    font-style: italic;
}

.no-data {
    padding: 12px;
    color: #999;
}


.select-box {
    font-weight:600;
}

/* STYLE DASAR TOMBOL MINI */
.btn-mini {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-mini {
    margin-right: 6px;
}


/* TOMBOL HAPUS OUTLINE MERAH */
.btn-delete {
    border: 2px solid #e53e3e;
    color: #e53e3e !important;
}

.btn-delete:hover {
    background: #e53e3e;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.35);
}

/* === FIX TOTAL TEXTAREA CATATAN === */
textarea.select-box {
    text-align: left !important;
    padding: 0.85rem;     /* SAMA persis dengan select */
    line-height: 1.5;
    font-weight: 400;
}

/* === FIX ALIGN TEXTAREA CATATAN PETUGAS === */
.textarea-note {
    min-height: 120px;
    resize: vertical;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}





