/* Base Styles */
:root {
    --neon-green: #d0ff3e;
    --neon-blue: #4dabf7;
    --neon-purple: #9c36b5;
    --neon-cyan: #00E8FF;
    --dark-bg: #0a0a0a;
    --space-gradient: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-glow: rgba(208, 255, 62, 0.15);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--space-gradient);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Enhancements */
.navbar {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(208, 255, 62, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.glow-effect {
    text-shadow: 0 0 10px rgba(208, 255, 62, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hover-underline {
    position: relative;
    padding-bottom: 3px;
}

.hover-underline:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.hover-underline:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
}

.text-gradient {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-illustration {
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transform: perspective(1000px) rotateY(10deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.gradient-border {
    position: relative;
    padding: 3px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    border-radius: 12px;
}

.gradient-border:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: var(--space-gradient);
    z-index: -1;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.neon-green { background: rgba(208, 255, 62, 0.1); }
.neon-blue { background: rgba(77, 171, 247, 0.1); }
.neon-purple { background: rgba(156, 54, 181, 0.1); }

/* Buttons */
.btn-neon {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s;
}

.btn-neon:hover {
    box-shadow: 0 0 20px rgba(208, 255, 62, 0.4);
    transform: translateY(-2px);
}

.btn-neon:hover:before {
    left: 100%;
}

.btn-outline-neon {
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-neon:hover {
    background: var(--neon-green);
    color: #000;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        padding-top: 80px;
        text-align: center;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        margin-top: 40px;
        transform: none;
    }
}
/* Efectos de partículas */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    border-radius: 50%;
    animation: particle-flow 20s infinite linear;
}

.particle-1 { width: 120px; height: 120px; top: 20%; left: -10%; }
.particle-2 { width: 80px; height: 80px; top: 60%; left: 90%; }
.particle-3 { width: 150px; height: 150px; top: 80%; left: 50%; }

@keyframes particle-flow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(100vw, 50vh) scale(1.5); opacity: 0.3; }
    100% { transform: translate(0, 100vh) scale(1); opacity: 0.1; }
}

/* Contenedor principal */
/* Centra vertical/horizontal el contenedor principal */
.login-portal {
    display: flex;
    min-height: 100vh;     /* ocupa toda la altura */
    align-items: center;   /* centra vertical */
    justify-content: center; /* centra horizontal */
    background: var(--space-gradient);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Contenedor del formulario con ancho máximo y estilos "glass" */
.portal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;         /* Ajusta el ancho a tu preferencia */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Inputs más grandes */
.neon-input .form-control {
    font-size: 1.2rem;
    padding: 15px 20px;
    /* etc. */
}

/* Botón grande */
.btn-neon.btn-block {
    font-size: 1.2rem;
    padding: 18px 20px;
    border-radius: 10px;
    /* etc. */
}


/* Logo holográfico */
.holographic-logo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 50px;
    perspective: 1000px;
}

.hologram-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: hologram-float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hologram-img {
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(208, 255, 62, 0.5));
    animation: hologram-rotate 15s linear infinite;
}

.hologram-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background: radial-gradient(circle, 
        rgba(208, 255, 62, 0.1) 0%,
        rgba(208, 255, 62, 0.05) 50%,
        transparent 100%);
    z-index: -1;
}

@keyframes hologram-float {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    25% { transform: translateY(-20px) rotateZ(2deg); }
    50% { transform: translateY(10px) rotateZ(-2deg); }
    75% { transform: translateY(-10px) rotateZ(1deg); }
}

@keyframes hologram-rotate {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

/* Campos de entrada */
.holographic-input {
    position: relative;
    margin-bottom: 40px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-green);
    font-size: 1.2rem;
    z-index: 2;
}

/* Aumentamos un poco el tamaño del input */
.neon-input {
    width: 100%;
    font-size: 1.2rem;              /* texto más grande */
    padding: 15px 20px 15px 50px;   /* espacio interno */
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(208, 255, 62, 0.2);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.neon-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 25px rgba(208, 255, 62, 0.2);
    background: rgba(0, 0, 0, 0.5);
    padding-left: 55px;
}

.input-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.4s ease;
}

.neon-input:focus ~ .input-underline {
    width: 100%;
}

/* Botón de acceso */
.portal-button {
    position: relative;
    width: 100%;
    font-size: 1.2rem;    /* letra más grande */
    padding: 20px;        /* más alto y ancho */
    background: var(--neon-green);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 25%,
        rgba(255,255,255,0.2) 50%,
        transparent 75%);
    animation: button-glow 3s infinite linear;
    transform: rotate(-45deg);
}

@keyframes button-glow {
    0%   { transform: translateX(-100%) rotate(-45deg); }
    100% { transform: translateX(100%)  rotate(-45deg); }
}

.portal-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(208, 255, 62, 0.4);
}

/* Si tienes enlaces dentro del formulario y quieres agrandarlos un poco */
.login-links a {
    font-size: 1rem;
}

/* Efectos responsive */
@media (max-width: 480px) {
    .portal-container {
        padding: 25px;
        max-width: 90%;
    }
    
    .holographic-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 30px;
    }
    
    .neon-input {
        font-size: 1.05rem;
    }
    .portal-button {
        font-size: 1.05rem;
    }
}

/* ================= DASHBOARD STYLES ================= */
.dashboard-body {
    background: var(--space-gradient);
    min-height: 100vh;
    display: flex;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    position: relative;
}

/* Backdrop blur effect para el fondo */
.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(208, 255, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(77, 171, 247, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(156, 54, 181, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ----- MENÚ LATERAL MEJORADO ----- */
.dashboard-sidebar {
    width: 280px;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(208, 255, 62, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.sidebar-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(208, 255, 62, 0.3));
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.sidebar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(208, 255, 62, 0.5));
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-cyan));
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(208, 255, 62, 0.3);
}

/* Menú de navegación mejorado */
.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin: 8px 15px;
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 255, 62, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.sidebar-link:hover::before {
    left: 100%;
}

.sidebar-link:hover {
    background: var(--hover-glow);
    color: var(--neon-green);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(208, 255, 62, 0.2);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(208, 255, 62, 0.2), rgba(77, 171, 247, 0.1));
    color: var(--neon-green);
    border: 1px solid rgba(208, 255, 62, 0.3);
    box-shadow: 0 0 20px rgba(208, 255, 62, 0.2);
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-link:hover .menu-icon {
    transform: scale(1.2);
    text-shadow: 0 0 10px currentColor;
}

.link-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Footer del sidebar con toggle mejorado */
.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.sidebar-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--neon-green);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.sidebar-toggle:hover {
    background: rgba(208, 255, 62, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(208, 255, 62, 0.3);
}

/* Estado colapsado del sidebar */
.dashboard-sidebar.collapsed {
    width: 80px;
}

.dashboard-sidebar.collapsed .sidebar-header {
    padding: 25px 10px;
}

.dashboard-sidebar.collapsed .sidebar-logo {
    width: 40px;
}

.dashboard-sidebar.collapsed .admin-badge,
.dashboard-sidebar.collapsed .link-text {
    opacity: 0;
    pointer-events: none;
}

.dashboard-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 16px;
}

.dashboard-sidebar.collapsed .menu-icon {
    margin-right: 0;
}

/* ----- CONTENIDO PRINCIPAL MEJORADO ----- */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    min-height: 100vh;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dashboard-main.expanded {
    margin-left: 80px;
}

/* Header del dashboard mejorado */
.dashboard-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 25px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 20px rgba(208, 255, 62, 0.3);
}

.dashboard-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
    color: var(--neon-cyan);
}

/* ================= ENHANCED STATS CARDS ================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-green);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    font-size: 1.5rem;
    color: #000;
    flex-shrink: 0;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ff9f43, #ffa726);
}

.stat-icon.progress {
    background: linear-gradient(135deg, #5352ed, #7c4dff);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #2ed573, #4caf50);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.stat-trend.positive {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.stat-trend.negative {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.stat-trend.neutral {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* ================= QUICK ACTIONS ================= */

.quick-actions {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    color: var(--neon-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.quick-action-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-green);
    color: inherit;
    text-decoration: none;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.quick-action-btn:hover::before {
    opacity: 0.05;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    color: #000;
}

.quick-action-btn.secondary .action-icon {
    background: linear-gradient(135deg, #5352ed, #7c4dff);
    color: white;
}

.quick-action-btn.tertiary .action-icon {
    background: linear-gradient(135deg, #ff9f43, #ffa726);
    color: white;
}

.quick-action-btn.success .action-icon {
    background: linear-gradient(135deg, #2ed573, #4caf50);
    color: white;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    color: var(--neon-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.action-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.action-arrow {
    color: var(--neon-green);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.quick-action-btn:hover .action-arrow {
    transform: translateX(5px);
}

/* ================= RESPONSIVE ENHANCEMENTS ================= */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-action-btn {
        padding: 20px;
        gap: 15px;
    }
    
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-trend {
        justify-content: center;
    }
}