/**
 * Dashboard specific styles
 */

/* Statistics cards animation */
.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Chart containers */
canvas {
    max-height: 300px;
}

/* Dashboard alerts */
.alert-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Quick stats gradient background */
.quick-stats {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* Upcoming appointments list */
.appointment-item {
    transition: all 0.2s ease;
}

.appointment-item:hover {
    transform: translateX(5px);
    background-color: rgba(236, 72, 153, 0.05);
}

/* KPI cards animation */
.dashboard-page .kpi-card {
    animation: slideInUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.dashboard-page .kpi-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Master load progress bars */
.dashboard-page .master-load-bar {
    animation: loadBarGrow 0.8s ease-out;
}

@keyframes loadBarGrow {
    from {
        width: 0;
    }
}

/* Birthday cards */
.dashboard-page .birthday-card {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Quick action buttons */
.dashboard-page a[href="#appointments"],
.dashboard-page a[href="#reports"] {
    transition: all 0.2s ease;
}

.dashboard-page a[href="#appointments"]:hover,
.dashboard-page a[href="#reports"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Alert notification pulse */
.dashboard-page .alert-notification {
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-page .grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-page .grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-page .kpi-card {
        padding: 1rem !important;
    }

    .dashboard-page .kpi-card p.text-3xl {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 640px) {
    .dashboard-page .grid-cols-5 {
        grid-template-columns: 1fr;
    }
}
