@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f4f7fe; color: #2b3674; }

/* --- Halaman Login --- */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #111c44 0%, #0b1437 100%); }
.login-card { background: white; padding: 45px 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); width: 100%; max-width: 420px; text-align: center; }
.login-card h2 { color: #111c44; margin-bottom: 10px; font-size: 26px; font-weight: 700;}
.login-card p { color: #a3aed1; margin-bottom: 35px; font-size: 15px; }
.login-card input { width: 100%; padding: 16px; margin-bottom: 20px; border: 2px solid #e0e5f2; border-radius: 12px; font-size: 16px; transition: all 0.3s; text-align: center; font-weight: 600; }
.login-card input:focus { border-color: #4318ff; outline: none; box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1); }
.login-btn { width: 100%; padding: 16px; background-color: #4318ff; color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color 0.3s, transform 0.2s; }
.login-btn:hover { background-color: #3311db; transform: translateY(-2px); }

/* --- Dashboard Layout --- */
.dashboard { display: flex; min-height: 100vh; }
.sidebar { width: 280px; background: #111c44; color: white; display: flex; flex-direction: column; transition: all 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.05); }
.sidebar-header { display: flex; align-items: center; gap: 12px; padding: 35px 25px 20px; }
.sidebar-header h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: white;}
.sidebar-header i { font-size: 26px; color: #4318ff; }
.user-profile { padding: 20px 25px; margin: 0 15px 20px; background: rgba(255,255,255,0.05); border-radius: 16px; backdrop-filter: blur(10px); }
.user-profile .name { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 6px; }
.user-profile .role { font-size: 12px; color: #a3aed1; background: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 20px; display: inline-block; font-weight: 500; }
.sidebar ul { list-style: none; padding: 0 15px; flex: 1; }
.sidebar ul li { margin-bottom: 8px; }
.sidebar ul li.menu-label { font-size: 11px; text-transform: uppercase; color: #a3aed1; font-weight: 700; margin: 20px 0 10px 15px; letter-spacing: 1px; }
.sidebar ul li a { color: #a3aed1; text-decoration: none; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; transition: all 0.2s ease; }
.sidebar ul li a:hover, .sidebar ul li a.active { background-color: #4318ff; color: #ffffff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.3); }
.logout-btn { margin: 20px 15px; padding: 15px; background-color: rgba(226, 232, 240, 0.1); color: #ff5b5b; text-align: center; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; transition: all 0.3s; }
.logout-btn:hover { background-color: #ff5b5b; color: white; }

/* Main Content & Table Box */
.main-content { flex: 1; padding: 40px 50px; overflow-y: auto; }
.header-title { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; }
.header-title-text h1 { font-size: 30px; color: #2b3674; font-weight: 700; letter-spacing: -0.5px; }
.header-title-text p { color: #a3aed1; font-size: 16px; margin-top: 8px; font-weight: 500;}

.card { background: #ffffff; border-radius: 20px; padding: 30px; box-shadow: 0 10px 25px rgba(112, 144, 176, 0.05); border: none; margin-bottom: 25px; }
.card h2 { font-size: 19px; margin-bottom: 25px; color: #2b3674; border-bottom: 2px solid #f4f7fe; padding-bottom: 15px; font-weight: 700; }

.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: #2b3674; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 18px; border: 2px solid #e0e5f2; border-radius: 12px; font-size: 15px; color: #2b3674; background-color: #ffffff; transition: all 0.2s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #4318ff; box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1); }
.form-group input[readonly] { background-color: #f8f9fd; cursor: not-allowed; color: #a3aed1; }
.color-picker { padding: 5px !important; height: 50px; cursor: pointer; border-radius: 12px;}

/* Buttons */
.btn { padding: 12px 24px; font-size: 14px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit { background-color: #4318ff; color: white; }
.btn-submit:hover { background-color: #3311db; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(67,24,255,0.3);}
.btn-add { background-color: #05cd99; color: white; padding: 12px 20px; font-size: 14px; }
.btn-add:hover { background-color: #04b386; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(5,205,153,0.3); }
.btn-cancel { background-color: #f4f7fe; color: #2b3674; }
.btn-cancel:hover { background-color: #e0e5f2; }
.btn-action { padding: 8px 12px; border-radius: 8px; font-size: 13px; margin: 0 3px; color: white; transition: 0.2s;}
.btn-edit { background-color: #ffb547; }
.btn-edit:hover { background-color: #e5a23c; transform: translateY(-2px);}
.btn-delete { background-color: #ff5b5b; }
.btn-delete:hover { background-color: #e54b4b; transform: translateY(-2px);}

/* Table */
.table-responsive { overflow-x: auto; }
.styled-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 15px; }
.styled-table th { padding: 0 15px 10px; font-weight: 700; color: #a3aed1; text-align: left; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px;}
.styled-table td { padding: 12px 15px; background-color: #f8f9fd; vertical-align: middle; }
.styled-table td:first-child { border-top-left-radius: 15px; border-bottom-left-radius: 15px; }
.styled-table td:last-child { border-top-right-radius: 15px; border-bottom-right-radius: 15px; }
.styled-table tbody tr { transition: transform 0.2s; }
.styled-table tbody tr:hover { transform: scale(1.01); box-shadow: 0 5px 15px rgba(0,0,0,0.03);}

/* Badges & Status */
.badge { padding: 8px 16px; border-radius: 30px; font-size: 12px; font-weight: 700; display: inline-block; text-align: center; }
.badge-default { background: #e2e8f0; color: #475569; }
.badge-kategori { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.submitter-info { font-size: 12px; color: #707e94; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-weight: 600; background: #e0e5f2; padding: 4px 10px; border-radius: 12px;}
.status-belum { background: #f4f7fe; color: #707e94; }
.status-menunggu { background: #ffb547; color: white; } /* Menunggu Validasi */
.status-terlaksana { background: #05cd99; color: white; }
.status-gagal { background: #ff5b5b; color: white; }

/* Timeline */
.timeline { position: relative; max-width: 800px; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; height: 100%; width: 3px; background: #e0e5f2; border-radius: 3px;}
.timeline-item { position: relative; background: white; padding: 18px 25px; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 10px 25px rgba(112, 144, 176, 0.08); }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #4318ff; border: 4px solid #f4f7fe; }
.timeline-date { font-size: 13px; color: #a3aed1; margin-bottom: 8px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.timeline-title { font-weight: 800; color: #2b3674; margin-bottom: 4px; font-size: 16px; }
.timeline-pengaju { font-size: 12px; color: #4318ff; font-weight: 600; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 10px; background: #f4f7fe; padding: 4px 12px; border-radius: 20px; border: 1px solid #e0e5f2;}
.timeline-desc { font-size: 13px; color: #707e94; line-height: 1.5; margin-bottom: 5px; }

/* FullCalendar */
.fc-event { border: none !important; padding: 6px 8px !important; border-radius: 8px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.fc-daygrid-block-event .fc-event-title { white-space: normal !important; }
.fc-event-main { padding: 4px !important; }
.fc-event-content-custom { display: flex; flex-direction: column; gap: 4px; }
.fc-event-title-custom { font-weight: 700; font-size: 13px; line-height: 1.3; }
.fc-event-pengaju-custom { font-size: 11px; font-weight: 500; opacity: 0.95; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 4px; line-height: 1.3;}

/* Modal Moderen */
.modal { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(11, 20, 55, 0.7); display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: white; width: 100%; max-width: 600px; border-radius: 20px; padding: 35px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); animation: zoomIn 0.25s ease-out; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f4f7fe; padding-bottom: 20px; margin-bottom: 25px; }
.modal-header h2 { font-size: 20px; color: #2b3674; font-weight: 800; }
.close-modal { font-size: 26px; font-weight: bold; color: #a3aed1; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: #ff5b5b; }

/* Modal Checkbox Berkas */
.berkas-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #f4f7fe; border: 2px solid transparent; border-radius: 16px; margin-bottom: 15px; transition: 0.3s; }
.berkas-row.uploaded { background: #e6faf5; border-color: #05cd99; }
.berkas-info { display: flex; align-items: center; gap: 15px; }
.berkas-info input[type="checkbox"] { width: 20px; height: 20px; accent-color: #4318ff; cursor: pointer; }
.upload-btn-lbl { padding: 10px 18px; background: #4318ff; color: white; font-size: 13px; font-weight: 700; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s;}
.upload-btn-lbl:hover { background: #3311db; }

/* Menjamin SweetAlert selalu di atas Modal kita */
.swal2-container { z-index: 10000 !important; }

@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 992px) {
    .dashboard { flex-direction: column; }
    .sidebar { width: 100%; border-radius: 0; }
    .sidebar ul { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 15px; }
    .sidebar ul li { margin-bottom: 0; white-space: nowrap; }
    .sidebar ul li.menu-label { display: none; }
    .main-content { padding: 25px; }
    .header-title { flex-direction: column; align-items: flex-start; gap: 15px; }
}