/* File: style.css */
/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- General Styling --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
}

body.admin-page {
    padding: 0;
}

.page-wrapper {
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px 40px;
}

h1, h2 {
    color: #1a202c;
    font-weight: 700;
    text-align: center;
}

/* --- Form Styling --- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 8px; color: #4a5568; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}
input:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
}
textarea { resize: vertical; min-height: 120px; }
.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.login-link { margin-top: 25px; text-align: center; }
.login-link a { color: #4299e1; text-decoration: none; font-weight: 600; }

/* --- Desain Header Baru --- */
.new-header {
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.header-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.header-text {
    display: flex;
    flex-direction: column;
}
.title-line-1 { font-size: 1.5rem; font-weight: 700; color: #1a202c; line-height: 1.2; }
.title-line-2 { font-size: 1rem; color: #4a5568; line-height: 1.2; }
.title-line-3 { font-size: 0.875rem; color: #718096; line-height: 1.2; }
.header-user-info { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.user-greeting { color: #4a5568; font-weight: 500; }
.logout { text-decoration: none; color: #e53e3e; font-weight: 500; background-color: #fff1f1; padding: 8px 12px; border-radius: 8px; }
.header-nav { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.header-nav a { text-decoration: none; color: #4a5568; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.header-nav a.active, .header-nav a:hover { background-color: #e0e7ff; color: #4338ca; }


/* --- Admin Table --- */
.table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e2e8f0; padding: 12px 15px; text-align: left; vertical-align: middle; }
.admin-table thead { background-color: #edf2f7; }
.admin-table th { font-weight: 600; color: #2d3748; }
.btn-action { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; border: none; cursor: pointer; }
.btn-primary { background-color: #4a90e2; color: white; }
.btn-secondary { background-color: #e2e8f0; color: #4a5568; }
.action-buttons { display: flex; gap: 8px; }
.officer-select { padding: 6px 10px; border: 1px solid #cbd5e0; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; background-color: #fff; }

/* --- Status Badges & History --- */
.status-cell { line-height: 1.4; }
.last-update-time { font-size: 0.75rem; color: #718096; display: block; }
.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 4px; }
.status-disetujui { background-color: #d1fae5; color: #065f46; }
.status-ditolak { background-color: #fee2e2; color: #b91c1c; }
.status-diproses { background-color: #fef3c7; color: #b45309; }
.status-diajukan { background-color: #e0e7ff; color: #4338ca; }
.status-history { list-style: none; padding-left: 20px; margin-top: 15px; border-left: 2px solid #e2e8f0; }
.status-history li { position: relative; margin-bottom: 20px; padding-left: 25px; }
.status-history li::before { content: ''; position: absolute; left: -30px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background-color: #cbd5e0; border: 3px solid #f4f7f9; }
.status-history li:first-child::before { background-color: #4a90e2; }
.history-status { font-weight: 600; }
.history-time { font-size: 0.85rem; color: #718096; }

/* --- Rekapitulasi --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-card { background-color: #ffffff; border-radius: 12px; padding: 25px; display: flex; align-items: flex-start; gap: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.stat-card .icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card .icon svg { width: 24px; height: 24px; color: white; }
.stat-card .info { display: flex; flex-direction: column; align-items: flex-start; }
.stat-card .info .value { font-size: 2rem; font-weight: 700; }
.stat-card .info .label { font-size: 0.9rem; color: #718096; margin-top: -5px; margin-bottom: 10px; }
.icon.total { background-color: #4f46e5; }
.icon.kerjasama { background-color: #2563eb; }
.icon.kunjungan { background-color: #059669; }
.icon.narasumber { background-color: #d97706; }

.breakdown-section { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.breakdown-card { background-color: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.breakdown-list { list-style: none; padding: 0; margin: 0; }
.breakdown-list li { display: block; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.item-header .name { font-weight: 500; color: #475569; }
.header-right { display: flex; align-items: center; gap: 15px; }
.header-right .count { font-weight: 600; background-color: #f1f5f9; padding: 4px 10px; border-radius: 20px; font-size: 0.9rem; }
.btn-detail { text-decoration: none; font-size: 0.8rem; font-weight: 600; color: #4338ca; background-color: #eef2ff; padding: 6px 12px; border-radius: 6px; border: 1px solid #c7d2fe; }
.progress-bar-container { background-color: #e2e8f0; border-radius: 10px; height: 8px; width: 100%; overflow: hidden; }
.progress-bar { height: 100%; background-color: #4a90e2; border-radius: 10px; }

/* --- Messages --- */
.message { padding: 15px; margin-bottom: 20px; border-radius: 8px; text-align: center; }
.message.success { background-color: #c6f6d5; color: #2f855a; }
.message.error { background-color: #fed7d7; color: #c53030; }

/* --- Styling untuk Footer (Diperbarui) --- */
.page-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #718096;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}
