@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap");

* {
    font-family: "Vazirmatn", sans-serif;
}

body {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    direction: rtl;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.chart-container {
    height: 200px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    padding: 20px;
    position: relative;
}

.bar {
    width: 25px;
    background: linear-gradient(to top, var(--color-start), var(--color-end));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 2px;
    cursor: pointer;
}

    .bar:hover {
        transform: scaleY(1.1);
        filter: brightness(1.1);
    }

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: center center;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .stat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .stat-card:hover::before {
        transform: translateX(0);
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.header-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .legend-item:hover {
        color: #333;
        transform: scale(1.05);
    }

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.comparison-bar {
    height: 20px;
    border-radius: 10px;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
}

.comparison-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    cursor: pointer;
}

    .comparison-fill:hover {
        filter: brightness(1.1);
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
