* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ============================================================
   LAYOUT UTAMA
   ============================================================ */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 240px;
    background: #1a365d;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-header p {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.2rem;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.nav-section {
    padding: 0.8rem 1.2rem 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.5;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-left-color: #63b3ed;
    font-weight: 500;
}

.nav-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-icon {
    display: inline-block;
    width: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */

.main-wrapper {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
}

.user-role {
    background: #ebf8ff;
    color: #2c5282;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-logout {
    background: #e53e3e;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #c53030;
}

/* ============================================================
   CONTENT
   ============================================================ */

.content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: #718096;
    font-size: 0.9rem;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    color: #2c5282;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5282;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.4rem;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-actions {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.quick-actions h3 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: #2c5282;
    color: white;
}

.btn-primary:hover {
    background: #1a365d;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-sm {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: opacity 0.2s;
}

.btn-edit {
    background: #3182ce;
    color: white;
}

.btn-delete {
    background: #e53e3e;
    color: white;
}

.btn-sm:hover {
    opacity: 0.85;
}

.btn-link {
    color: #3182ce;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    align-items: center;
}

.search-form input {
    padding: 0.6rem 0.9rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
    max-width: 400px;
}

.search-form input:focus {
    outline: none;
    border-color: #2c5282;
}

/* ============================================================
   TABLE
   ============================================================ */

.table-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f7fafc;
}

.data-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.pagination a {
    color: #3182ce;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.pagination a:hover {
    background: #ebf8ff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    color: #718096;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-color: #38a169;
}

.alert-danger {
    background: #fff5f5;
    color: #742a2a;
    border-color: #e53e3e;
}

.alert-warning {
    background: #fffaf0;
    color: #7b341e;
    border-color: #ed8936;
}

.alert-info {
    background: #ebf8ff;
    color: #2a4365;
    border-color: #4299e1;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h1 {
    color: #2c5282;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.login-footer {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    text-align: center;
    padding: 1.5rem;
    color: #a0aec0;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    .sidebar-header h2,
    .sidebar-header p,
    .nav-item span:not(.nav-icon),
    .nav-section {
        display: none;
    }
    .main-wrapper {
        margin-left: 60px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .content {
        padding: 1rem;
    }
}\n