/**
 * Estilos para la nueva interfaz de Ventanilla Única Digital
 */



/* Botón de menú */
.menu-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .menu-toggle-btn {
        top: 15px;
        right: 15px;
        font-size: 22px;
        width: 40px;
        height: 40px;
    }
}

/* Menú desplegable */
.menu-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1040;
    min-width: 220px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.menu-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .menu-dropdown {
        top: 60px;
        right: 15px;
        min-width: 200px;
        max-width: 80vw;
    }
}

.menu-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #0062a3;
}

.menu-dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-dropdown-item:hover {
    background-color: rgba(0, 98, 163, 0.1);
    transform: translateX(5px);
}

.menu-dropdown-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #0062a3;
}

.menu-dropdown-item.danger {
    color: #dc3545;
}

.menu-dropdown-item.danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.menu-dropdown-item.danger i {
    color: #dc3545;
}

.menu-dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Animación de fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para los botones del header */
.header-buttons {
    display: flex;
    align-items: center;
}

.header-buttons .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.header-buttons .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.header-buttons .btn-primary {
    background-color: var(--primary-color, #007ACC);
    border: none;
}

.header-buttons .btn-primary:hover {
    background-color: #0E639C; /* Azul VS Code más oscuro */
    transform: translateY(-2px);
}

.header-buttons .bi {
    font-size: 1.1rem;
}

/* Estilos para contador de estadísticas */
.stats-container {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0.8rem 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color, #1F2937);
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1.1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary, #6B7280);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Estilos para el mensaje de no resultados */
.alert-info {
    background-color: rgba(186, 230, 253, 0.5);
    border-color: rgba(56, 189, 248, 0.3);
    color: #0369a1;
    border-radius: 0.75rem;
    padding: 1.25rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem;
        position: relative; /* Cambiado a relativo en dispositivos móviles */
    }
    
    .stats-container {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 0.5rem 0.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0;
    }
    
    .header-buttons {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .header-buttons .btn {
        flex: 1;
        justify-content: center;
    }

    /* Ajustes adicionales para móviles */
    .dropdown-menu {
        background-color: rgba(31, 41, 55, 0.95);
    }
}

