/* SPP Madrasah - Custom Styles */

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

#sidebar-wrapper .list-group-item {
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #495057 !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #0d6efd !important;
    border-left: 3px solid #fff;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 0.5rem;
}

.stat-card {
    transition: transform 0.2s;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
}

.badge-lunas {
    background-color: #198754;
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

.badge-tunggak {
    background-color: #dc3545;
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.btn-bayar {
    background-color: #198754;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.btn-bayar:hover {
    background-color: #157347;
    color: white;
}

.btn-wa {
    background-color: #25d366;
    color: white;
    font-size: 0.85rem;
}

.btn-wa:hover {
    background-color: #128c7e;
    color: white;
}

.login-box {
    max-width: 420px;
    margin: 0 auto;
}

.login-box .card {
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media print {
    #sidebar-wrapper, #toggle-sidebar, .no-print {
        display: none !important;
    }
    #page-content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    .container-fluid {
        padding: 0 !important;
    }
}

.text-success-custom {
    color: #198754 !important;
}

.text-danger-custom {
    color: #dc3545 !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Pagination */
.pagination .page-link {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        position: fixed;
        z-index: 999;
    }
    #sidebar-wrapper.d-none {
        display: none !important;
    }
    .container-fluid {
        padding: 1rem !important;
    }
}
