/**
 * Dashboard - Sistema de Enlaces
 * Versión: 1.0
 * Estilos para el contenido del dashboard con soporte de temas
 */

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.page-title {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.page-title i.text-icon {
    color: var(--icon-highlight);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

/* ============================================
   DASHBOARD CARD
   ============================================ */
.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.dashboard-card .card-body {
    padding: 2rem;
    background-color: var(--bg-card);
    transition: background-color 0.3s ease;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-icon {
    color: var(--icon-highlight);
    animation: wave 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(14deg);
    }
    20%, 40% {
        transform: rotate(-8deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-4deg);
    }
    70% {
        transform: rotate(0deg);
    }
}

.welcome-title {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-name-highlight {
    color: var(--icon-highlight);
    font-weight: 700;
    transition: color 0.3s ease;
}

.site-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.current-datetime {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.current-datetime i {
    color: var(--icon-highlight);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* ============================================
   TEXT UTILITIES - Theme Aware
   ============================================ */
.text-icon {
    color: var(--icon-highlight) !important;
    transition: color 0.3s ease;
}

.text-primary-theme {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.text-secondary-theme {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

.text-muted-theme {
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
}

/* ============================================
   CARDS GENERALES
   ============================================ */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.card-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-title i.text-icon {
        font-size: 1.5rem;
    }
    
    .welcome-icon {
        font-size: 3rem !important;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-title i.text-icon {
        font-size: 1.25rem;
    }
    
    .welcome-icon {
        font-size: 2.5rem !important;
    }
    
    .welcome-title {
        font-size: 1.1rem;
    }
    
    .site-subtitle {
        font-size: 0.9rem;
    }
    
    .current-datetime {
        font-size: 0.85rem;
    }
    
    .dashboard-card .card-body {
        padding: 1rem;
    }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.5s ease-out;
}

.page-header {
    animation: fadeInUp 0.4s ease-out;
}

