:root {
    --sidebar-width: 250px;
}

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

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 10px 15px;
    transition: background 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

#wrapper.toggled .sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-stat {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s;
}

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

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

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.badge-cuota {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.month-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.month-card .month-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        z-index: 1000;
    }
    #wrapper.toggled .sidebar {
        margin-left: 0;
    }
}

.alert-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-action {
    padding: 4px 8px;
    font-size: 0.85rem;
}
