:root {
    /* Palet Warna Koperasi Syariah Al-Azkiya */
    --color-1: #12522d; /* Hijau Tua Utama */
    --color-2: #4ea35a; /* Hijau Terang */
    --color-3: #fded94; /* Kuning Muda */
    --color-4: #eee920; /* Kuning Terang */
    
    --white: #ffffff;
    --gray-light: #f4f6f9;
    --gray-dark: #343a40;
    --text-primary: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--text-primary);
}

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

.sidebar {
    width: 280px;
    background-color: var(--color-1);
    color: var(--white);
    padding: 20px;
}

.content-area {
    flex: 1;
    padding: 30px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--color-2);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-1);
}

/* Login Page Styles */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-1), var(--color-2));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.login-card img {
    width: 120px;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-1);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--color-2);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fce4e4;
    color: #cc0000;
    border: 1px solid #f9cccc;
}

/* Modal Alert Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-alert {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-alert h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.modal-alert p {
    margin-bottom: 25px;
    color: #666;
}

.modal-alert.success h3 { color: #12522d; }
.modal-alert.danger h3 { color: #cc0000; }
/* Table & Data List Styles (Premium) */
.standard-table, .report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.standard-table th, .report-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

.standard-table td, .report-table td {
    padding: 16px 20px;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.standard-table tr:last-child td, .report-table tr:last-child td {
    border-bottom: none;
}

.standard-table tr:hover, .report-table tr:hover {
    background-color: #fcfdfe;
}

.standard-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Action Buttons in Tables */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-view { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.btn-view:hover { background: #e2e8f0; color: #1e293b; }

.btn-edit { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.btn-edit:hover { background: #ffedd5; color: #9a3412; }

.btn-delete { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }
.btn-delete:hover { background: #fee2e2; color: #991b1b; }

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-active { background: #ecfdf5; color: #065f46; }
.status-inactive { background: #fff1f2; color: #9f1239; }
