/* Estilos principales para CodigosFullEntretenimiento - Basado en fullentretenimiento.com */

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    /* Colores principales de FullEntretenimiento - Basado en fullentretenimiento.com */
    --primary-color: #300060;
    --secondary-color: #5000A0;
    --accent-color: #00D4FF;
    --accent-pink: #FF007A;
    --accent-magenta: #FF1493;
    --background-color: #1a0033;
    --dark-bg: #0d0020;
    --light-purple: #6B46C1;
    --bright-blue: #3B82F6;
    --bright-pink: #EC4899;
    --teal: #14B8A6;
    --white: #FFFFFF;
    
    /* Gradientes vibrantes del sitio */
    --primary-gradient: linear-gradient(135deg, #300060 0%, #5000A0 50%, #6B46C1 100%);
    --secondary-gradient: linear-gradient(135deg, #00D4FF 0%, #3B82F6 100%);
    --pink-gradient: linear-gradient(135deg, #FF007A 0%, #FF1493 100%);
    --teal-gradient: linear-gradient(135deg, #14B8A6 0%, #00D4FF 100%);
    --success-gradient: linear-gradient(135deg, #14B8A6 0%, #00D4FF 100%);
    --warning-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --danger-gradient: linear-gradient(135deg, #FF007A 0%, #FF1493 100%);
    --info-gradient: linear-gradient(135deg, #00D4FF 0%, #3B82F6 100%);
    
    /* Efectos de brillo */
    --glow-primary: 0 0 20px rgba(48, 0, 96, 0.5);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-pink: 0 0 20px rgba(255, 0, 122, 0.5);
    --glow-teal: 0 0 20px rgba(20, 184, 166, 0.5);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    background-image: 
        url('assets/images/main-banner1.jpg'),
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: cover, 50px 50px, 50px 50px;
    background-position: center center, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
    background-blend-mode: overlay;
    line-height: 1.7;
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de fondo con difuminado leve */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(1deg); }
    66% { transform: translate(30px, -20px) rotate(-1deg); }
}

/* Navbar */
.navbar {
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(48, 0, 96, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    box-shadow: 
        0 15px 40px rgba(48, 0, 96, 0.4),
        0 0 0 1px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: var(--glow-primary);
}

.card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 14.5px 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: var(--secondary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-blue), 0 8px 25px rgba(48, 0, 96, 0.4);
    border-color: var(--accent-color);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--glow-teal);
}

.btn-success:hover {
    background: var(--teal-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-teal), 0 8px 25px rgba(20, 184, 166, 0.4);
    border-color: var(--teal);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7), 0 8px 25px rgba(255, 165, 0, 0.4);
    border-color: #FFD700;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: var(--glow-pink);
}

.btn-danger:hover {
    background: var(--pink-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-pink), 0 8px 25px rgba(255, 0, 122, 0.4);
    border-color: var(--accent-pink);
}

.btn-info {
    background: var(--info-gradient);
    color: white;
    box-shadow: var(--glow-blue);
}

.btn-info:hover {
    background: var(--secondary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-blue), 0 8px 25px rgba(0, 212, 255, 0.4);
    border-color: var(--accent-color);
}

/* Botón especial con efecto neón */
.btn-neon {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 
        0 0 10px var(--accent-color),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 5px var(--accent-color);
}

.btn-neon:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 
        0 0 20px var(--accent-color),
        0 0 30px var(--accent-color),
        0 0 40px var(--accent-color);
    text-shadow: none;
    transform: translateY(-3px);
}

/* Tables */
.table {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table thead th {
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: var(--glow-primary);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-blue);
}

/* Badges */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-netflix {
    background: var(--netflix-color);
    color: white;
}

.badge-disney {
    background: var(--disney-color);
    color: white;
}

.badge-admin {
    background: var(--danger-gradient);
    color: white;
}

.badge-user {
    background: var(--info-gradient);
    color: white;
}

/* Forms */
.form-select {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25), var(--glow-blue);
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Input Groups */
.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: white;
    backdrop-filter: blur(10px);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
    box-shadow: var(--glow-blue);
}

.input-group:focus-within .form-control {
    border-color: var(--accent-color);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
}

/* Code Cards */
.code-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-blue);
}

.code-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--glow-blue), 0 10px 25px rgba(0, 212, 255, 0.3);
}

.code-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 3px;
    margin: 1rem 0;
    text-shadow: 0 0 10px var(--accent-color);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tipografía digital */
.digital-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.futuristic-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 15px var(--accent-color);
}

.pixel-text {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    color: var(--white);
    text-shadow: 1px 1px 0px var(--accent-pink);
}

/* Service Cards */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: scale(1.02);
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Stats Cards */
.stats-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    text-align: center;
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Headers */
.welcome-section, .admin-header, .email-header, .history-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.welcome-section::before, .admin-header::before, .email-header::before, .history-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.welcome-section h1, .admin-header h1, .email-header h1, .history-header h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 0px #FF007A, -2px -2px 0px #00D4FF;
    animation: glitchText 2s infinite;
    position: relative;
}

/* Efecto de texto glitch/anaglífico */
@keyframes glitchText {
    0%, 100% { 
        transform: translate(0);
        text-shadow: 2px 2px 0px #FF007A, -2px -2px 0px #00D4FF;
    }
    20% { 
        transform: translate(-2px, 2px);
        text-shadow: 2px 2px 0px #FF007A, -2px -2px 0px #00D4FF;
    }
    40% { 
        transform: translate(-2px, -2px);
        text-shadow: -2px 2px 0px #FF007A, 2px -2px 0px #00D4FF;
    }
    60% { 
        transform: translate(2px, 2px);
        text-shadow: -2px -2px 0px #FF007A, 2px 2px 0px #00D4FF;
    }
    80% { 
        transform: translate(2px, -2px);
        text-shadow: 2px -2px 0px #FF007A, -2px 2px 0px #00D4FF;
    }
}

.welcome-section p, .admin-header p, .email-header p, .history-header p {
    color: white;
    font-family: 'Roboto', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Clase especial para títulos principales con efecto glitch */
.glitch-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    text-shadow: 
        2px 2px 0px #FF007A,
        -2px -2px 0px #00D4FF,
        4px 4px 8px rgba(0, 0, 0, 0.5);
    animation: glitchText 3s infinite;
    position: relative;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-title::before {
    animation: glitch-1 0.5s infinite;
    color: #FF007A;
    z-index: -1;
}

.glitch-title::after {
    animation: glitch-2 0.5s infinite;
    color: #00D4FF;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-new {
    background: var(--success-gradient);
    animation: pulse 2s infinite;
}

.refresh-btn {
    animation: spin 2s linear infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section, .admin-header, .email-header, .history-header {
        padding: 2rem 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .code-number {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Efectos adicionales para el tema digital */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--accent-color);
    }
    to {
        box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

.cyber-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
                var(--primary-gradient) border-box;
}

/* Elementos flotantes brillantes */
.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px var(--accent-color);
}

.floating-element:nth-child(2) {
    background: var(--accent-pink);
    animation-delay: -2s;
    animation-duration: 8s;
    box-shadow: 0 0 20px var(--accent-pink);
}

.floating-element:nth-child(3) {
    background: var(--teal);
    animation-delay: -4s;
    animation-duration: 10s;
    box-shadow: 0 0 20px var(--teal);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Estilos específicos para Login */
body.login-page {
    background: white !important;
    background-image: none !important;
}

body.login-page::before {
    display: none !important;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: transparent;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
}

.signpages .bg-ingreso {
    background: url(../assets/images/fondo-ingreso.png);
    background-size: 100% 100%;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    background-size: cover;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.header-brand-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    position: relative;
    z-index: 3;
}

/* Logo móvil más grande */
.d-lg-none.header-brand-img {
    max-width: 220px;
    height: auto;
}

.logo-ingreso {
    width: 230px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    z-index: 3;
}

.pos-absolute {
    position: absolute;
}

.img-persona-ingreso {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    border-bottom-left-radius: 10px;
    z-index: 2;
}

.signpages .login_form {
    background-color: #ffffff;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 2rem;
}

.login_form h5 {
    color: #333;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.login_form .text-muted {
    color: #666 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.tx-13 {
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: block;
}

.login_form .form-control {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.login_form .form-control:focus {
    border-color: #6B46C1;
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
    background: white;
    outline: none;
}

.login_form .form-group {
    margin-bottom: 1.5rem;
}

.login_form .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.btn-main-primary {
    background: #6B46C1;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem;
}

.btn-main-primary:hover {
    background: #5534A3;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.ver-input {
    right: 15px;
    top: 35px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.ver-input:hover {
    color: #6B46C1;
}

.login-footer {
    background: #6B46C1 !important;
    color: white !important;
    border-radius: 0 0 15px 15px !important;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-brand-img {
    max-width: 150px;
    height: auto;
}

/* Responsive para login */
@media (max-width: 991px) {
    .bg-ingreso {
        display: none !important;
    }
    
    .login_form {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .login-card {
        margin: 1rem;
        max-width: 500px;
    }
    
    /* Logo móvil más grande en tablets */
    .d-lg-none.header-brand-img {
        max-width: 240px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem 0;
    }
    
    .login-card {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .login_form {
        padding: 1.5rem;
    }
    
    /* Logo móvil aún más grande en móviles pequeños */
    .d-lg-none.header-brand-img {
        max-width: 200px;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .code-card {
        break-inside: avoid;
    }
}

/* Estilos adicionales para coincidir exactamente con el sitio oficial */
.main-body.body-ingreso {
    background: #f5f6fa;
    font-family: 'Roboto', sans-serif;
}

.page.main-signin-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.signpages.sombra-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

/* Forzar que el card del login no se mueva */
.signpages.sombra-card .card {
    transform: none !important;
}

.signpages.sombra-card .card:hover {
    transform: none !important;
}

/* Responsive para login */
@media (max-width: 991px) {
    .signpages .bg-ingreso {
        display: none !important;
    }
    
    .signpages .login_form {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .signpages.sombra-card {
        margin: 1rem;
        border-radius: 10px;
    }
}

/* ===== MODAL DE LOGIN EXITOSO ===== */
.success-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(98, 89, 202, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    overflow: hidden;
    position: relative;
}

.success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6259ca, #00d4ff, #ff6b9d, #6259ca);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.success-modal .modal-body {
    padding: 3rem 2rem;
    position: relative;
}

.success-icon {
    font-size: 4rem;
    color: #00d4aa;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        transform: scale(0.9) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.success-title {
    color: #6259ca;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease-out 0.3s both;
    font-family: 'Raleway', sans-serif;
}

.success-message {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out 0.5s both;
    line-height: 1.6;
}

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

.success-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.33);
        opacity: 1;
    }
    80%, 100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transform: scale(0.7) rotateY(15deg);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) rotateY(0deg);
}

/* Efecto de brillo en el icono */
.success-icon i {
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.6));
    }
}

/* Responsive para el modal */
@media (max-width: 576px) {
    .success-modal .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-message {
        font-size: 0.9rem;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.logo-text h4 {
    margin: 0;
    color: #6259ca;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-item:hover {
    color: #6259ca;
}

.header-item .badge {
    background: #ff6b9d;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c2b4e;
    color: white;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.mobile-menu-btn.menu-open {
    background: var(--error-color);
}

.mobile-menu-btn.menu-open:hover {
    background: #c82333;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    position: relative;
}

.sidebar-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    color: #bdc3c7;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 1rem 1.5rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active .nav-link {
    background: #e0e0e0;
    color: #6259ca;
    font-weight: 600;
}

.nav-item.active .nav-link i {
    background: #6259ca;
    color: white;
    border-radius: 50%;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-link span {
    font-size: 0.9rem;
}

/* Estilo especial para cerrar sesión */
.nav-section:last-child .nav-link {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    margin-top: 1rem;
}

.nav-section:last-child .nav-link:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.5);
    transform: translateX(5px);
}

.nav-section:last-child .nav-link i {
    color: #dc3545;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== MATERIAL DESIGN SYSTEM ===== */
:root {
    --primary-color: #6259ca;
    --primary-light: #7c6be0;
    --primary-dark: #4a3f9a;
    --secondary-color: #00d4aa;
    --accent-color: #ff6b9d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    
    --surface-color: #ffffff;
    --surface-variant: #f8f9fa;
    --background-color: #f5f7fa;
    --on-surface: #212529;
    --on-surface-variant: #6c757d;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-xl: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Material Card Base */
.material-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.material-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.user-name {
    display: block;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Buttons */
.hero-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: white;
    min-width: 160px;
    justify-content: center;
}

.hero-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.hero-btn.admin {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-btn:active {
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Stats Section */
.stats-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-icon-wrapper {
    flex-shrink: 0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stat-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #00e6bb);
}

.stat-icon.accent {
    background: linear-gradient(135deg, var(--accent-color), #ff8fab);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Main Sections */
.main-sections {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Functions Section */
.functions-section {
    width: 100%;
}

/* Functions Grid */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.function-card.primary {
    border-left: 4px solid var(--primary-color);
}

.function-card.secondary {
    border-left: 4px solid var(--secondary-color);
}

.function-card.accent {
    border-left: 4px solid var(--accent-color);
}

.function-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.function-card.primary .function-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.function-card.secondary .function-icon {
    background: linear-gradient(135deg, var(--secondary-color), #00e6bb);
}

.function-card.accent .function-icon {
    background: linear-gradient(135deg, var(--accent-color), #ff8fab);
}

.function-content {
    flex: 1;
}

.function-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
}

.function-content p {
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.function-stats {
    margin-top: auto;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-variant);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

.function-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.function-card.primary .function-btn {
    background: var(--primary-color);
}

.function-card.secondary .function-btn {
    background: var(--secondary-color);
}

.function-card.accent .function-btn {
    background: var(--accent-color);
}

.function-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dashboard Widgets */
.dashboard-widgets {
    width: 100%;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.widget-card {
    padding: 0;
    overflow: hidden;
}

.widget-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface-color), var(--surface-variant));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.widget-title {
    flex: 1;
}

.widget-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.widget-title p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.widget-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.widget-indicator {
    display: flex;
    align-items: center;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--on-surface-variant);
    opacity: 0.5;
}

.indicator-dot.active {
    background: var(--success-color);
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.widget-content {
    padding: 1.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.service-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-variant);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-chip:hover .chip-text {
    color: white;
}

.chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    background: var(--primary-color);
    flex-shrink: 0;
}

.service-chip:hover .chip-icon {
    background: white;
    color: var(--primary-color);
}

.chip-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--on-surface);
}

/* Empty Widget */
.empty-widget {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--on-surface-variant);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.empty-widget p {
    margin: 0;
    font-size: 0.9rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--surface-variant);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.activity-avatar.success {
    background: linear-gradient(135deg, var(--success-color), #34ce57);
}

.activity-avatar.info {
    background: linear-gradient(135deg, var(--info-color), #20c997);
}

.activity-avatar.warning {
    background: linear-gradient(135deg, var(--warning-color), #ffd43b);
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.activity-details p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin: 0 0 0.5rem 0;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: var(--surface-variant);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.quick-stat:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.quick-stat .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
    margin: 0 auto 0.75rem;
}

.quick-stat:hover .stat-icon {
    background: white;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
}

.quick-stat:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

.quick-stat:hover .stat-label {
    color: white;
}

/* ===== CHECK CODES PAGE STYLES ===== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.header-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-info {
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: white !important;
    opacity: 1;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
    text-shadow: none;
}

.header-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.header-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.35);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-stats .stat-item.admin-badge {
    background: rgba(255, 193, 7, 0.4);
    border: 2px solid rgba(255, 193, 7, 0.8);
    color: #ffd700;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.header-stats .stat-item.admin-badge i {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.header-stats .stat-item i {
    font-size: 1.1rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.header-stats .stat-item span {
    color: #ffffff !important;
}

/* Alert Container */
.alert-container {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 0;
    overflow: hidden;
}

/* Netflix Card Special Styling */
.netflix-card {
    background: linear-gradient(135deg, #e50914 0%, #b81d13 100%);
    color: white;
    border: 2px solid #e50914;
}

.netflix-card:hover {
    border-color: #f40612;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.netflix-card .service-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.netflix-card .service-info h3 {
    color: white;
    font-weight: 700;
}

.netflix-card .service-info p {
    color: rgba(255, 255, 255, 0.9);
}

.netflix-card .stat-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.netflix-card .service-emails h4 {
    color: white;
}

.netflix-card .email-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.netflix-card .email-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.netflix-card .no-emails-assigned {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.netflix-card .no-emails-assigned p,
.netflix-card .no-emails-assigned small {
    color: white;
}

.service-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface-color), var(--surface-variant));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 100px;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    flex-shrink: 0;
}

.service-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

/* Netflix card specific styling */
.netflix-card .service-icon {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    width: 75px;
    height: 75px;
}

.netflix-card .service-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: none;
    background: transparent;
}

.netflix-card .service-icon:hover .service-logo {
    transform: scale(1.1);
}

/* Fallback icon for Netflix */
.netflix-card .service-icon i {
    color: #e50914;
    font-size: 1.8rem;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.service-info p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin: 0 0 0.75rem 0;
}

.service-stats {
    margin-top: auto;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-emails {
    padding: 1.5rem;
}

.service-emails h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.emails-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--surface-variant);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--on-surface);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.email-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.email-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
}

.email-item i:first-child {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.email-item:hover i:first-child,
.email-item.active i:first-child {
    color: white;
}

.email-item i:last-child {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-item.active i:last-child {
    opacity: 1;
}

/* Codes Section */
.codes-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.codes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-info p {
    font-size: 1rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Codes Grid */
.codes-grid {
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--on-surface);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Code Cards */
.code-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.code-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.code-card.new {
    border-left: 4px solid var(--success-color);
}

.code-card.stored {
    border-left: 4px solid var(--primary-color);
}

.code-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.code-content {
    margin-top: 1rem;
}

.code-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface-variant);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.code-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item strong {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    font-weight: 600;
}

.detail-item span {
    font-size: 0.9rem;
    color: var(--on-surface);
    word-break: break-word;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--on-surface-variant);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.empty-state p {
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.feature-card.admin::before {
    background: linear-gradient(90deg, var(--accent-color), #ff8fab);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    transition: all 0.3s ease;
}

.feature-card.admin .feature-icon {
    background: linear-gradient(135deg, var(--accent-color), #ff8fab);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feature-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card.admin .feature-btn {
    background: var(--accent-color);
}

.feature-card.admin .feature-btn:hover {
    background: #ff8fab;
}

/* Quick Access Section */
.quick-access-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-access-card,
.activity-card {
    padding: 0;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface-color), var(--surface-variant));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.header-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.header-content p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background: var(--surface-variant);
    border-color: rgba(98, 89, 202, 0.2);
    transform: translateX(4px);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.service-info p {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.service-action {
    color: var(--on-surface-variant);
    transition: all 0.3s ease;
}

.service-item:hover .service-action {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--on-surface-variant);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.empty-state p {
    margin: 0;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -24px;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-icon.success {
    background: linear-gradient(135deg, var(--success-color), #34ce57);
}

.timeline-icon.info {
    background: linear-gradient(135deg, var(--info-color), #20c997);
}

.timeline-content {
    flex: 1;
    padding-top: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0.25rem 0;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    margin: 0 0 0.5rem 0;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    
    /* Show sidebar when open */
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    /* Show close button on mobile */
    .sidebar-close-btn {
        display: flex;
    }
    
    /* Remove margin from main content on mobile */
    .main-content {
        margin-left: 0;
        padding-top: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .main-sections {
        padding: 1rem;
        gap: 2rem;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .function-card {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .widget-card {
        min-width: unset;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .service-chip {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stats-section {
        padding: 1rem;
    }
    
    .main-sections {
        padding: 0.5rem;
        gap: 1.5rem;
    }
    
    .function-card {
        padding: 1rem;
        min-height: 200px;
    }
    
    .function-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .widget-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .service-chip {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .activity-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .activity-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Check Codes Page Responsive */
    .header-text {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .header-stats {
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .codes-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .codes-container {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .assign-email-form {
        padding: 1rem;
    }
    
    .assign-email-form .d-inline-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .assign-email-form .form-select,
    .assign-email-form .form-control {
        width: 100% !important;
    }
    
    .admin-email-input .d-inline-flex {
        flex-direction: column;
        gap: 0.75rem !important;
        align-items: stretch;
    }
    
    .admin-email-input .form-control {
        width: 100% !important;
    }
    
    .admin-email-input .btn {
        width: 100% !important;
        order: 2;
    }
    
    .admin-email-input .form-control {
        order: 1;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .services-section {
        padding: 1rem;
    }
    
    .codes-section {
        padding: 1rem;
    }
    
    .service-emails {
        padding: 1rem;
    }
    
    .code-card {
        padding: 1rem;
    }
    
    .code-number {
        font-size: 1.25rem;
    }
}

/* No Services State */
.no-services-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.no-services-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.3;
    color: var(--primary-color);
}

.no-services-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.no-services-state p {
    font-size: 1rem;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.debug-info {
    background: var(--surface-variant);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.debug-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--on-surface);
}

.debug-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.debug-info li {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

/* Admin Actions */
.admin-actions {
    background: var(--surface-variant);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--warning-color);
}

.admin-actions h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-actions h4::before {
    content: '🔧';
    font-size: 1.2rem;
}

.admin-actions p {
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.assign-email-form {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.assign-email-form .form-select,
.assign-email-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.assign-email-form .form-select:focus,
.assign-email-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(98, 89, 202, 0.25);
    outline: none;
}

.assign-email-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.assign-email-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Admin Email Input */
.admin-email-input {
    margin-top: 1rem;
}

.admin-email-input .d-inline-flex {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: stretch;
}

.admin-email-input .form-control {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

.admin-email-input .btn {
    flex-shrink: 0;
}

.admin-email-input .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(98, 89, 202, 0.25);
    outline: none;
}

.admin-email-input .btn {
    padding: 0 1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    min-width: auto;
    height: 48px;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: 1px solid var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


.admin-email-input .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* No Emails Assigned */
.no-emails-assigned {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--surface-variant);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.no-emails-assigned i {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.no-emails-assigned p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.no-emails-assigned small {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-section h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.badge-admin {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #6259ca 0%, #7c6be0 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
}

.btn-admin {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

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

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

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #6259ca 0%, #7c6be0 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #00d4aa 0%, #00e6bb 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

.stat-content h3 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.stat-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Instructions Card */
.instructions-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.instructions-card .card-header {
    background: linear-gradient(135deg, #6259ca 0%, #7c6be0 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.instructions-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.instruction-item:last-child {
    border-bottom: none;
}

.instruction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6259ca 0%, #7c6be0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.instruction-content h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.instruction-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Activity Card */
.activity-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.activity-card .card-header {
    background: linear-gradient(135deg, #00d4aa 0%, #00e6bb 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.activity-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa 0%, #00e6bb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-content {
    display: flex;
    flex-direction: column;
}

.activity-text {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.activity-time {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Services Card */
.services-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.services-card .card-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.services-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: #f8f9fa;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.service-content h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
}

.service-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.8rem;
}

.no-services {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-services i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffc107;
}

/* Top Actions */
.top-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-recarga-auto {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
}

.btn-recarga-cuenta {
    background: linear-gradient(135deg, #6259ca 0%, #7c6be0 100%);
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Report Card */
.report-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.report-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.report-card .card-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.report-card .card-body {
    padding: 1.5rem;
}

.report-list {
    color: #ecf0f1;
    padding-left: 1.5rem;
}

.report-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Saldo and Compras Cards */
.saldo-card, .compras-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.saldo-amount {
    color: #6259ca;
    font-weight: 700;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.saldo-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.saldo-icon {
    font-size: 3rem;
    color: #6259ca;
    opacity: 0.3;
}

.compras-list {
    margin-top: 1rem;
}

.compra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.compra-item:last-child {
    border-bottom: none;
}

.compra-info {
    display: flex;
    flex-direction: column;
}

.compra-service {
    font-weight: 600;
    color: #2c3e50;
}

.compra-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.compra-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}



/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile form layout */
    .admin-email-input .d-inline-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }
    
    .admin-email-input .form-control {
        width: 100% !important;
        order: 1 !important;
    }
    
    .admin-email-input .btn {
        width: 100% !important;
        order: 2 !important;
    }
}

@media (max-width: 576px) {
    .sidebar {
        height: 100vh;
    }
    
    /* Ensure mobile form layout for small screens */
    .admin-email-input .d-inline-flex {
        flex-direction: column !important;
    }
    
    .admin-email-input .form-control {
        order: 1 !important;
        width: 100% !important;
    }
    
    .admin-email-input .btn {
        order: 2 !important;
        width: 100% !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0.5rem;
    }
    
}


