/* ========================================
   DASHBOARD LATERAL - SEMANA 4
   Rediseño del menú principal
======================================== */

/* ========================================
   DASHBOARD SIDEBAR (LATERAL)
======================================== */
.dashboard-sidebar {
    background: #484A67;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Card Compacta */
.stat-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-compact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-card-compact:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: #60a5fa;
    transition: all var(--transition-smooth);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-bottom: 0.25rem;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Stats List (cursos) */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item-small:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.stat-item-small .course-name {
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item-small .course-count {
    font-weight: var(--font-weight-bold);
    color: #60a5fa;
    font-size: 1rem;
}

/* ========================================
   MENU CARDS MODERNIZADAS
======================================== */
.menu-card-modern {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    min-height: 200px;
}

.menu-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.menu-card-modern:hover::before {
    transform: scaleX(1);
}

.menu-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-blue);
}

/* Iconos con gradiente */
.icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
}

.icon-container svg {
    width: 48px;
    height: 48px;
}

.menu-card-modern:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* Gradientes para iconos */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-blue svg {
    stroke: white;
}

.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-green svg {
    stroke: white;
}

.gradient-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
}

.gradient-orange svg {
    stroke: white;
}

.gradient-cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
}

.gradient-cyan svg {
    stroke: white;
}

.gradient-purple {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
}

.gradient-purple svg {
    stroke: white;
}

.gradient-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.gradient-red svg {
    stroke: white;
}

.gradient-indigo {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.gradient-indigo svg {
    stroke: white;
}

/* Título de la card */
.menu-card-modern h5 {
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.menu-card-modern p {
    color: var(--primary);
    opacity: 0.7;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Indicador de nuevo */
.new-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge en cards */
.menu-card-modern .badge {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Mini stats en cards */
.card-mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tertiary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.card-mini-stat i {
    color: var(--accent-blue);
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablet */
@media (max-width: 992px) {
    .dashboard-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        max-height: none;
    }

    .stat-card-compact {
        padding: 0.875rem;
    }

    .icon-container {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .icon-container svg {
        width: 48px;
        height: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-sidebar {
        padding: 1rem;
    }

    .stat-card-compact {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .icon-container {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .icon-container svg {
        width: 40px;
        height: 40px;
    }

    .menu-card-modern {
        padding: 1.5rem;
    }

    .menu-card-modern h5 {
        font-size: 1rem;
    }

    .menu-card-modern p {
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .stats-list {
        gap: 0.35rem;
    }

    .stat-item-small {
        padding: 0.5rem;
    }

    .stat-item-small .course-name {
        font-size: 0.85rem;
    }

    .stat-item-small .course-count {
        font-size: 0.9rem;
    }
}

/* ========================================
   SCROLLBAR PERSONALIZADO (SIDEBAR)
======================================== */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: var(--tertiary);
    border-radius: var(--radius-sm);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}