.crm-body {
    background-color: #f4f6f9;
    padding-top: 72px;
    min-height: 100vh;
}

.crm-content {
    padding: 2rem;
}

.crm-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Stats */
.dashboard-stats .stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease forwards;
}

.dashboard-stats .stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-stats .stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-stats .stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-stats .stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
    }
    to {
        transform: translateY(0);
    }
}

.dashboard-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #1a4f8b), var(--card-color-light, #2a6fa8));
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-card .stat-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.stat-card-primary {
    --card-color: #1a4f8b;
    --card-color-light: #2a6fa8;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #1a4f8b, #0f3460);
    color: #fff;
    box-shadow: 0 8px 25px rgba(26, 79, 139, 0.3);
}

.stat-card-primary::before {
    background: linear-gradient(90deg, #1a4f8b, #2a6fa8);
}

.stat-card-male {
    --card-color: #0d6efd;
    --card-color-light: #3d8bfd;
}

.stat-card-male .stat-icon {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.stat-card-male::before {
    background: linear-gradient(90deg, #0d6efd, #3d8bfd);
}

.stat-card-female {
    --card-color: #d63384;
    --card-color-light: #e85a9e;
}

.stat-card-female .stat-icon {
    background: linear-gradient(135deg, #d63384, #a61e4d);
    color: #fff;
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

.stat-card-female::before {
    background: linear-gradient(90deg, #d63384, #e85a9e);
}

.stat-card-youth {
    --card-color: #e8a317;
    --card-color-light: #f0b94a;
}

.stat-card-youth .stat-icon {
    background: linear-gradient(135deg, #e8a317, #d4920f);
    color: #fff;
    box-shadow: 0 8px 25px rgba(232, 163, 23, 0.3);
}

.stat-card-youth::before {
    background: linear-gradient(90deg, #e8a317, #f0b94a);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #333, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-trend {
    font-size: 0.85rem;
    color: #198754;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-card .stat-trend i {
    font-size: 1rem;
}

/* Filters */
.filters-section .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

/* Table */
.table-section .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.table-section .table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-verificado {
    background-color: #198754;
}

.badge-no-verificado {
    background-color: #dc3545;
}

/* Footer */
.crm-footer {
    background: linear-gradient(135deg, #0a2540, #0f3460);
    color: #fff;
    padding: 1.5rem 0;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f3460, #1a4f8b 60%, #133a63);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(232, 163, 23, 0.2), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: loginFadeUp 0.5s ease forwards;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-accent-bar {
    height: 6px;
    background: linear-gradient(90deg, #1a4f8b, #e8a317 50%, #ce1126);
}

.login-card-body {
    padding: 2.75rem 2.25rem 2.25rem;
    text-align: center;
}

.login-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a4f8b, #0f3460);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(26, 79, 139, 0.35);
}

.login-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d4920f;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f3460;
    margin-bottom: 0.15rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-form {
    text-align: left;
}

.login-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .form-control {
    border: 1px solid #d0d5dd;
    border-left: 4px solid #1a4f8b;
    border-radius: 8px;
    padding: 0.7rem 2.75rem 0.7rem 1rem;
    font-size: 0.95rem;
    box-shadow: none;
}

.login-input-wrap .form-control:focus {
    border-color: #d0d5dd;
    border-left-color: #e8a317;
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.15);
}

.login-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
    pointer-events: none;
}

.btn-login {
    background: #e8a317;
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background: #d4920f;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(232, 163, 23, 0.4);
}

.login-footer-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .crm-content {
        padding: 1rem;
    }

    .dashboard-stats .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}
