* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fb;
    padding-top: 70px;
}

.wrapper {
    display: flex;
}

.sidebar {
    width: 260px;
    background: white;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100% - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    min-height: calc(100vh - 70px);
}

.sidebar .nav-link {
    color: #5a6e8a;
    padding: 12px 20px;
    margin: 4px 8px;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background: #f0f4ff;
    color: #4e73df;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar .nav-link i {
    width: 25px;
    margin-right: 10px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: white;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
    padding: 18px 24px;
    border-radius: 15px 15px 0 0 !important;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 0;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
}

.badge-pending { background: #ffc107; color: #000; }
.badge-paid { background: #28a745; }
.badge-partial { background: #17a2b8; }
.badge-overdue { background: #dc3545; }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

.dataTables_wrapper {
    padding: 10px 0;
}

.modal-content {
    border-radius: 15px;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

footer {
    background: white;
    padding: 15px;
    text-align: center;
    margin-top: 30px;
    border-radius: 12px;
}