﻿:root {
    --primary: #4e73df;
    --primary-light: #e8f1ff;
    --success: #1cc88a;
    --success-light: #e6faf3;
    --info: #36b9cc;
    --info-light: #e8f7fa;
    --warning: #f6c23e;
    --warning-light: #fef8e6;
    --danger: #e74a3b;
    --danger-light: #fcebec;
    --dark: #5a5c69;
    --light: #f8f9fc;
}


.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #224abe 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 1em;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 15s infinite linear;
}

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stat-card {
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    background-color: #fdfdfd;
}

.icon-circle {
    transition: all 0.3s ease;
}

.stat-card:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
}

a.stretched-link,
.card-footer small {
    transition: color 0.2s ease;
}

a.stretched-link:hover + .card-footer small,
.card-footer small:hover {
    color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.bg-primary-light {
    background-color: rgba(78, 115, 223, 0.15);
}

.bg-info-light {
    background-color: rgba(54, 185, 204, 0.15);
}

.bg-success-light {
    background-color: rgba(28, 200, 138, 0.15);
}

.bg-warning-light {
    background-color: rgba(246, 194, 62, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.data-stat-item {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.data-stat-item:hover {
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.counter {
    font-weight: 700;
    transition: all 1s ease-out;
}

.progress-bar-animated {
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.tooltip-inner {
    background-color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
}

.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}


@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(78, 115, 223, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0);
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

#myChart,
#barChart {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.timelines {
    
    border-left: 3px solid var(--primary);
    margin-left: 15px;
    position: relative;
    padding-left: 10px;
    
}

.timeline-item {
    
    position: relative;
    padding-left: 20px;
    transition: transform 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 6px;
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background-color: #fff;
    border: 2px solid var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(78,115,223,0.6);
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}
