﻿/* =================================================================== */
/* ESTILOS PARA DASHBOARD DE OPERACIONES (SIMPLIFICADO)    */
/* =================================================================== */

.operations-dashboard-root {
    min-height: 100vh;
    background: #f3f6fb;
    color: #1f2937;
    display: flex;
}

    .operations-dashboard-root * {
        box-sizing: border-box;
    }

    .operations-dashboard-root .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* --- Sidebar (sin cambios) --- */
    .operations-dashboard-root .sidebar {
        width: 250px;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        color: white;
        padding: 20px 0;
        position: fixed;
        height: 100vh;
        z-index: 100;
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .operations-dashboard-root .sidebar-header {
        padding: 0 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .operations-dashboard-root .logo {
        font-size: 2rem;
        font-weight: 700;
        color: white;
        text-decoration: none;
        background: linear-gradient(45deg, #ffffff, #f0f9ff, #dbeafe);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .operations-dashboard-root .sidebar-nav {
        padding: 20px 0;
    }

    .operations-dashboard-root .nav-item {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        cursor: pointer;
    }

        .operations-dashboard-root .nav-item:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-left-color: rgba(255, 255, 255, 0.3);
        }

        .operations-dashboard-root .nav-item.active {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            font-weight: 600;
            border-left-color: white;
        }

    .operations-dashboard-root .nav-icon {
        font-size: 1.2rem;
        margin-right: 15px;
        width: 24px;
        text-align: center;
    }

    /* --- Main Content --- */
    .operations-dashboard-root .main-content-wrapper {
        flex: 1;
        margin-left: 250px;
        transition: margin-left 0.3s ease;
    }

    .operations-dashboard-root .header {
        background: white;
        padding: 15px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .operations-dashboard-root .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .operations-dashboard-root .sidebar-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #1e3a8a;
    }

    .operations-dashboard-root .user-info-container {
        margin-left: auto;
    }

    .operations-dashboard-root .user-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .operations-dashboard-root .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(45deg, #059669, #10b981);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: white;
    }

    .operations-dashboard-root .user-name {
        font-weight: 600;
    }

    .operations-dashboard-root .user-role {
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .operations-dashboard-root .logout-btn {
        background: rgba(37, 99, 235, 0.1);
        border: 1px solid rgba(37, 99, 235, 0.2);
        color: #2563eb;
        padding: 8px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

        .operations-dashboard-root .logout-btn:hover {
            background: rgba(37, 99, 235, 0.2);
        }

    .operations-dashboard-root .main-content {
        padding: 40px 0;
    }

    /* --- Secciones del Dashboard --- */
    .operations-dashboard-root .welcome-section {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border-radius: 20px;
        padding: 40px;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .operations-dashboard-root .welcome-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1e3a8a;
        margin-bottom: 10px;
    }

    .operations-dashboard-root .welcome-subtitle {
        font-size: 1.2rem;
        color: #64748b;
    }

    /* --- NUEVA CUADRÍCULA DE ACCIONES 2x2 --- */
    .operations-dashboard-root .actions-section {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .operations-dashboard-root .actions-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 30px;
        text-align: center;
    }

    .operations-dashboard-root .actions-grid-expanded {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Crea 2 columnas */
        gap: 30px; /* Espacio entre las tarjetas */
    }

    .operations-dashboard-root .action-card {
        border-radius: 16px;
        padding: 40px;
        text-align: center;
        transition: all 0.4s ease;
        cursor: pointer;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 280px;
    }

        .operations-dashboard-root .action-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        /* Variantes de color para las tarjetas */
        .operations-dashboard-root .action-card.primary {
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        }

        .operations-dashboard-root .action-card.primary-alt {
            background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
        }

        .operations-dashboard-root .action-card.secondary {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        }

        .operations-dashboard-root .action-card.secondary-alt {
            background: linear-gradient(135deg, #065f46 0%, #047857 100%);
        }

    .operations-dashboard-root .action-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
        display: block;
    }

    .operations-dashboard-root .action-title {
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 15px;
    }

    .operations-dashboard-root .action-description {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 25px;
        flex-grow: 1;
    }

    .operations-dashboard-root .action-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 14px 35px;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        align-self: center;
    }

        .operations-dashboard-root .action-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .operations-dashboard-root .actions-grid-expanded {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .operations-dashboard-root .sidebar {
        transform: translateX(-100%);
    }

        .operations-dashboard-root .sidebar.open {
            transform: translateX(0);
        }

    .operations-dashboard-root .main-content-wrapper {
        margin-left: 0;
    }

    .operations-dashboard-root .sidebar-toggle {
        display: block;
    }

    .operations-dashboard-root .header-content .user-info > div:not(.user-avatar) {
        display: none;
    }

    .operations-dashboard-root .actions-grid-expanded {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}
