/* =================================================================
   DASHBOARD PROFESIONAL - ESTILOS MODULARES
   Diseño moderno y profesional para el dashboard principal
================================================================= */

/* Reset específico para dashboard para evitar conflictos */
#dashboard-section * {
    box-sizing: border-box;
}

#dashboard-section .dashboard-grid {
    all: unset;
    display: grid !important;
}

#dashboard-section .activity-item,
#dashboard-section .task-item-modern,
#dashboard-section .task-item-mini {
    all: unset;
    display: flex !important;
}

/* Ocultar elementos específicos del dashboard que no queremos */
#dashboard-section .quick-actions,
#dashboard-section .progress-overview,
#dashboard-section .calendar-preview,
#dashboard-section .performance-metrics,
#dashboard-section .notifications-center {
    display: none !important;
}

/* Asegurar que solo los elementos deseados se muestren */
#dashboard-section .stats-overview,
#dashboard-section .recent-activity,
#dashboard-section .upcoming-tasks {
    display: flex !important;
}

/* =================================================================
   VARIABLES ESPECÍFICAS DEL DASHBOARD
================================================================= */
:root {
    /* Gradientes profesionales */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-info: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);

    /* Sombras dinámicas */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-floating: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Colores específicos del dashboard */
    --dashboard-primary: #6366f1;
    --dashboard-secondary: #8b5cf6;
    --dashboard-success: #10b981;
    --dashboard-warning: #f59e0b;
    --dashboard-danger: #ef4444;
    --dashboard-info: #3b82f6;

    /* Colores de texto */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    /* Espaciado del dashboard */
    --dashboard-gap: 1.5rem;
    --dashboard-gap-lg: 2rem;
    --dashboard-gap-xl: 3rem;

    /* Bordes y radios */
    --radius-dashboard: 16px;
    --radius-dashboard-lg: 24px;
    
    /* Animaciones */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =================================================================
   CONTENEDOR PRINCIPAL DEL DASHBOARD - SIMPLE Y LIMPIO
================================================================= */
.dashboard-container {
    min-height: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-content {
    position: relative;
    z-index: 1;
    padding: 0 3rem;
}

/* =================================================================
   GRID LAYOUT MODERNO - DASHBOARD SIMPLE
================================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: slideInUp var(--duration-slow) var(--easing-smooth);
    min-height: auto;
}

.dashboard-grid-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-dashboard);
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--easing-smooth);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.dashboard-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-dashboard);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--easing-smooth);
    z-index: -1;
}

.dashboard-grid-item:hover::before {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* =================================================================
   LAYOUT ESPECÍFICO DE ELEMENTOS - DASHBOARD SIMPLE Y LIMPIO
================================================================= */
.stats-overview {
    grid-column: span 12;
    min-height: auto;
    margin-bottom: 2rem;
}

.recent-activity {
    grid-column: span 8;
    min-height: 400px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    margin-right: 1.5rem;
}

.upcoming-tasks {
    grid-column: span 4;
    min-height: 400px;
    margin-left: 1.5rem;
}

/* Elementos removidos del dashboard principal */
.quick-actions,
.progress-overview,
.calendar-preview,
.performance-metrics,
.notifications-center {
    display: none !important;
}

/* =================================================================
   TARJETAS DE ESTADÍSTICAS - ESPACIADO GENEROSO
================================================================= */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: var(--radius-dashboard);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--easing-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--duration-normal) var(--easing-smooth);
}

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

.stat-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s var(--easing-smooth);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

/* Indicador visual de que es clickeable */
.stat-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--dashboard-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--easing-smooth);
}

.stat-card:hover::after {
    opacity: 0.6;
}

/* Tooltip para indicar que es clickeable */
.stat-card[data-section]:hover {
    position: relative;
}

.stat-card[data-section]:hover .stat-label::after {
    content: 'Click para ver más';
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 400;
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease-out 0.5s forwards;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

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

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    z-index: -1;
}

.stat-icon.subjects { background: var(--gradient-primary); }
.stat-icon.tasks { background: var(--gradient-warning); }
.stat-icon.notes { background: var(--gradient-success); }
.stat-icon.events { background: var(--gradient-info); }

.stat-menu {
    opacity: 0;
    transition: opacity var(--duration-normal) var(--easing-smooth);
}

.stat-card:hover .stat-menu {
    opacity: 1;
}

.stat-menu-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--easing-smooth);
}

.stat-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--dashboard-success);
}

.stat-change.negative {
    color: var(--dashboard-danger);
}

.stat-change-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.stat-change.positive .stat-change-icon {
    background: var(--dashboard-success);
    color: white;
}

.stat-change.negative .stat-change-icon {
    background: var(--dashboard-danger);
    color: white;
}

/* =================================================================
   ACCIONES RÁPIDAS MODERNAS - ESPACIADO MEJORADO
================================================================= */
.quick-actions-container {
    padding: var(--dashboard-gap-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--dashboard-gap-lg);
}

.quick-actions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dashboard-gap);
    flex: 1;
}

.quick-action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-dashboard);
    padding: var(--dashboard-gap-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dashboard-gap);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--easing-bounce);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--easing-smooth);
    z-index: -1;
}

.quick-action-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-floating);
    color: white;
}

.quick-action-card:hover::before {
    opacity: 0.9;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--dashboard-primary);
    transition: all var(--duration-normal) var(--easing-smooth);
}

.quick-action-card:hover .quick-action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.quick-action-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: color var(--duration-normal) var(--easing-smooth);
}

/* =================================================================
   ACTIVIDAD RECIENTE MEJORADA - ESPACIADO GENEROSO
================================================================= */
.activity-container {
    padding: 3rem 2.5rem 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.activity-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 3rem;
    bottom: 3rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.activity-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Estilo unificado para actividad reciente - simulada y dinámica */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all var(--duration-fast) var(--easing-smooth);
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}

.activity-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.subject { background: var(--gradient-primary); }
.activity-icon.task { background: var(--gradient-warning); }
.activity-icon.note { background: var(--gradient-success); }
.activity-icon.event { background: var(--gradient-info); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title-text,
.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: block;
}

.activity-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.activity-type {
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-weight: 500;
}

/* =================================================================
   TAREAS PRÓXIMAS RENOVADAS - ESPACIADO GENEROSO
================================================================= */
.tasks-container {
    padding: 3rem 2.5rem 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tasks-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 3rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.tasks-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tasks-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    padding-left: 1.5rem;
}

/* Estilo unificado para tareas - simuladas y dinámicas */
.task-item-modern,
.task-item-mini {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    margin-bottom: 1.75rem;
    transition: all var(--duration-normal) var(--easing-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.task-item-modern::before,
.task-item-mini::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--duration-normal) var(--easing-smooth);
}

.task-item-modern:hover,
.task-item-mini:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.task-item-modern:hover::before,
.task-item-mini:hover::before {
    transform: scaleY(1);
}

.task-item-modern.priority-high::before,
.task-item-mini .task-priority-indicator.priority-high {
    background: var(--gradient-danger);
}

.task-item-modern.priority-medium::before,
.task-item-mini .task-priority-indicator.priority-medium {
    background: var(--gradient-warning);
}

.task-item-modern.priority-low::before,
.task-item-mini .task-priority-indicator.priority-low {
    background: var(--gradient-success);
}

/* Indicador de prioridad para tareas mini */
.task-priority-indicator {
    width: 4px;
    height: 100%;
    border-radius: 2px;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

/* Contenido de las tareas */
.task-content {
    flex: 1;
    min-width: 0;
}

.task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.task-title-modern,
.task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
    flex: 1;
    min-width: 0;
}

.task-priority-modern {
    padding: 0.4rem 0.85rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
    white-space: nowrap;
}

.task-priority-modern.high {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.task-priority-modern.medium {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.task-priority-modern.low {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.task-description-modern {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

.task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.task-due-date.overdue {
    color: var(--dashboard-danger);
    background: rgba(239, 68, 68, 0.1);
}

.task-due-date.today {
    color: var(--dashboard-warning);
    background: rgba(245, 158, 11, 0.1);
}

.task-due-date.soon {
    color: var(--dashboard-info);
    background: rgba(59, 130, 246, 0.1);
}

.task-subject-tag {
    padding: 0.3rem 0.85rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =================================================================
   MÉTRICAS DE PROGRESO CIRCULAR
================================================================= */
.progress-container {
    padding: var(--dashboard-gap);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--dashboard-gap);
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s var(--easing-smooth);
}

.progress-circle-fill.pending {
    stroke: url(#gradient-danger);
}

.progress-circle-fill.in-progress {
    stroke: url(#gradient-warning);
}

.progress-circle-fill.completed {
    stroke: url(#gradient-success);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =================================================================
   MINI CALENDARIO
================================================================= */
.calendar-preview-container {
    padding: var(--dashboard-gap);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-mini {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1rem;
    flex: 1;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--easing-smooth);
}

.calendar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.calendar-month {
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-smooth);
    position: relative;
}

.calendar-day.header {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: default;
}

.calendar-day.other-month {
    color: var(--text-light);
}

.calendar-day.today {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--dashboard-primary);
    border-radius: 50%;
}

.calendar-day:hover:not(.header):not(.today) {
    background: rgba(0, 0, 0, 0.05);
}

/* =================================================================
   NOTIFICACIONES CENTER
================================================================= */
.notifications-container {
    padding: var(--dashboard-gap);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--duration-fast) var(--easing-smooth);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(2px);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.notification-icon.info { background: var(--gradient-info); }
.notification-icon.warning { background: var(--gradient-warning); }
.notification-icon.success { background: var(--gradient-success); }
.notification-icon.danger { background: var(--gradient-danger); }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* =================================================================
   GRADIENTES SVG PARA GRÁFICOS
================================================================= */
.dashboard-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* =================================================================
   ANIMACIONES ESPECÍFICAS
================================================================= */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* =================================================================
   RESPONSIVE DESIGN PARA DASHBOARD - SIMPLIFICADO
================================================================= */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    .stats-overview {
        grid-column: span 8;
    }
    
    .recent-activity {
        grid-column: span 5;
        min-height: 350px;
        border-right: 2px solid rgba(255, 255, 255, 0.4);
        margin-right: 1rem;
    }
    
    .upcoming-tasks {
        grid-column: span 3;
        min-height: 350px;
        margin-left: 1rem;
    }
    
    .stats-container {
        gap: 2rem;
        padding: 2rem;
    }
    
    .stat-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    
    .dashboard-grid-item {
        grid-column: span 1 !important;
        min-height: 300px;
    }
    
    .recent-activity {
        border-right: none;
        margin-right: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.4);
        margin-bottom: 1rem;
        padding-bottom: 2rem;
    }
    
    .upcoming-tasks {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 2rem;
    }
    
    .activity-container::after {
        display: none;
    }
    
    .tasks-container::before {
        display: none;
    }
    
    .activity-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 2rem;
        right: 2rem;
        height: 2px;
        width: auto;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.6) 80%,
            transparent 100%
        );
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        display: block;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .activity-container,
    .tasks-container {
        padding: 2rem 1.5rem;
    }
    
    .activity-list {
        padding-right: 0.5rem;
    }
    
    .tasks-list {
        padding-left: 0.5rem;
    }
    
    .activity-item,
    .task-item-modern,
    .task-item-mini {
        padding: 1.5rem;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 0 1.5rem;
    }
    
    .dashboard-container {
        padding: 2rem 0;
    }
    
    .dashboard-grid {
        gap: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .activity-container,
    .tasks-container {
        padding: 1.5rem;
    }
    
    .activity-header,
    .tasks-header {
        margin-bottom: 1.5rem;
    }
    
    .activity-title,
    .tasks-title {
        font-size: 1.25rem;
    }
    
    .activity-item,
    .task-item-modern,
    .task-item-mini {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .activity-container::after {
        left: 1rem;
        right: 1rem;
    }
}

/* =================================================================
   UTILIDADES ESPECÍFICAS DEL DASHBOARD
================================================================= */
.dashboard-fade-in {
    animation: slideInUp 0.6s var(--easing-smooth);
}

.dashboard-fade-in-delay-1 {
    animation: slideInUp 0.6s var(--easing-smooth) 0.1s both;
}

.dashboard-fade-in-delay-2 {
    animation: slideInUp 0.6s var(--easing-smooth) 0.2s both;
}

.dashboard-fade-in-delay-3 {
    animation: slideInUp 0.6s var(--easing-smooth) 0.3s both;
}

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

.dashboard-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.dashboard-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all var(--duration-slow) var(--easing-smooth);
}

/* Estados de carga y vacío */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    min-height: 200px;
    opacity: 0.7;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--dashboard-primary);
}

.empty-state-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.empty-state-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Estado de carga para contenedores de datos */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
}

.loading-spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid var(--dashboard-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ocultar contenedores vacíos inicialmente */
.activity-list:empty::after {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="50" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="100" cy="100" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" begin="0.5s" repeatCount="indefinite"/></circle><circle cx="100" cy="150" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" begin="1s" repeatCount="indefinite"/></circle></svg>') center center no-repeat;
    background-size: 50px 50px;
}

.tasks-list:empty::after {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="50" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="100" cy="100" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" begin="0.5s" repeatCount="indefinite"/></circle><circle cx="100" cy="150" r="3" fill="%236366f1" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1.5s" begin="1s" repeatCount="indefinite"/></circle></svg>') center center no-repeat;
    background-size: 50px 50px;
}

/* Mostrar indicador de carga durante la carga inicial */
.data-loading .activity-list,
.data-loading .tasks-list {
    position: relative;
    min-height: 200px;
}

.data-loading .activity-list::before,
.data-loading .tasks-list::before {
    content: 'Cargando datos...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mejoras para el header de cards */
.card-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--dashboard-gap);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.card-title-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-primary);
}

.card-actions-modern {
    display: flex;
    gap: 0.5rem;
}

/* Estados de hover mejorados */
.hover-shadow-lift {
    transition: all var(--duration-normal) var(--easing-smooth);
}

.hover-shadow-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-floating);
}

/* Animaciones de entrada escalonadas */
.animate-fadeInUp {
    animation: slideInUp 0.6s var(--easing-smooth);
}

.animate-delay-100 {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.animate-delay-200 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animate-delay-300 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
