.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.login-card h2 {
    color: #0f172a;
    margin-bottom: 10px;
}

.login-card p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.login-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.logout-box {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #334155;
}

.layout {
    width: 100%;
}

.sidebar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    padding: 0 16px;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: #3b82f6;
    color: white;
}

.main {
    padding: 30px 40px;
    background: #f8fafc;
}

section {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 25px;
    display: block;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 180px;
    max-width: 220px;
    flex: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    margin-bottom: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-value {
    font-size: 1.2rem;
    margin-top: 5px;
}

.balance-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.balance-card .card-value {
    color: #10b981;
}

.card-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.card-icon.green {
    background: #ecfdf5;
    color: #10b981;
}

.card-icon.success {
    background: #f0fdf4;
    color: #16a34a;
}

.card-icon.warning {
    background: #fffbeb;
    color: #d97706;
}

.table-bar {
    margin-top: 40px;
    padding: 25px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.status-lunas {
    color: #10b981;
    font-weight: 600;
}

.status-belum {
    color: #f59e0b;
    font-weight: 600;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin {
    background: #f5f3ff;
    color: #7c3aed;
}

.warga {
    background: #f1f5f9;
    color: #475569;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-edit {
    background: #fef3c7;
    color: #d97706;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.input-modern {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.8rem;
}

.info-iuran-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-iuran-banner i {
    color: #d97706;
    font-size: 1.3rem;
}

.info-iuran-banner p {
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.info-iuran-banner span {
    color: #b91c1c;
    font-size: 1.1rem;
    font-weight: 800;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header div h1 {
    margin-bottom: 10px;
}

body.is-warga .btn-primary,
body.is-warga .btn-delete,
body.is-warga .btn-edit {
    display: none !important;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.credit-box {
    text-align: center;
}

.school-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.class-info {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 400;
}

.group-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}