/* Dashboard V2 - Premium Visual Enhancements */

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.slide-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dashboard Greeting */
.dashboard-greeting {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.greeting-dot {
    width: 12px;
    height: 12px;
    background: var(--p-accent, #FF6600);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--p-accent, #FF6600);
    animation: pulse-soft 2s infinite ease-in-out;
}

.dashboard-greeting h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--p-primary, #223f7c);
    margin: 0;
}

/* Premium Cards */
.summary-card.detailed-card,
.stat-card {
    background: rgba(255, 255, 255, 0.85);
    /* Increased opacity for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.summary-card.detailed-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--p-primary-alt, #3b5ea8);
}

.summary-card.detailed-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* Section Header */
.dashboard-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--p-primary, #223f7c);
    margin: 32px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--p-accent, #FF6600);
    border-radius: 2px;
}

/* Turnover Stack & Grids */
.turnover-stack,
.stats-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Icons */
.summary-icon,
.stat-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    color: var(--p-primary, #223f7c);
}

/* Contrast Improvements for Glassmorphism */
.summary-card.detailed-card .summary-label,
.stat-card:not(.stat-card-gradient) .stat-label {
    color: var(--p-primary, #223f7c) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.summary-card.detailed-card .summary-value,
.stat-card:not(.stat-card-gradient) .stat-value {
    color: var(--p-primary, #223f7c) !important;
    font-weight: 800 !important;
}

.summary-card.detailed-card .detailed-description,
.summary-card.detailed-card .detailed-helper,
.summary-card.detailed-card .summary-detail,
.summary-card.detailed-card .summary-footnote,
.stat-card .stat-detail,
.stat-card .stat-trend:not(.stat-trend-positive):not(.stat-trend-negative),
.stat-card .stat-label,
.summary-label,
.summary-footnote,
.detailed-helper {
    color: #1a3160 !important;
    /* Darker Blue (primary-dark) */
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Ensure trend arrows are also dark if neutral */
.trend-arrow {
    color: inherit;
}

.summary-card:hover .summary-icon,
.stat-card:hover .stat-icon {
    background: var(--p-primary, #223f7c);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

/* Gradient Backgrounds for Statistics */
.stat-card-gradient {
    color: white !important;
}

.stat-card-gradient .stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-card-gradient .stat-value {
    -webkit-text-fill-color: white !important;
    background: none !important;
}

.stat-primary {
    background: linear-gradient(135deg, #223F7C 0%, #3B5EA8 100%);
}

.stat-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.stat-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Specific enhancements for portal actions */
.action-card {
    cursor: pointer;
}

.action-card .action-icon {
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    transform: translateY(-5px) scale(1.1);
}

.action-card .action-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Birthday List Enhancement */
.birthday-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    transition: background 0.3s ease;
}

.birthday-item:hover {
    background: rgba(34, 63, 124, 0.03);
}

.birthday-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--p-primary), var(--p-primary-alt));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(34, 63, 124, 0.2);
}

.birthday-info strong {
    font-family: 'Outfit', sans-serif;
    color: var(--p-primary);
}

/* Premium Header for Portal */
.premium-header {
    background: linear-gradient(135deg, #223f7c 0%, #1a3160 100%);
    padding: 48px;
    border-radius: 32px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(34, 63, 124, 0.15);
}

.premium-header::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}