/* ===============================
   GLOBAL
=================================*/

html, body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
}

h1:focus {
    outline: none;
}

h3 {
    font-weight: 600;
    color: #2c3e50;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}


/* ===============================
   FORM & VALIDATION
=================================*/

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


/* ===============================
   KPI CARDS
=================================*/

.kpi-card {
    padding: 22px;
    border-radius: 18px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

    .kpi-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }

    .kpi-card h4 {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .kpi-card span {
        font-size: 14px;
        opacity: 0.9;
        letter-spacing: 0.5px;
    }

/* Couleurs custom plus modernes */
.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.bg-warning {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.bg-dark {
    background: linear-gradient(135deg, #343a40, #1d2124);
}


/* ===============================
   CHART CONTAINER
=================================*/

.chart-container {
    padding: 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}


/* ===============================
   TABLE GENDER COLORS
=================================*/

.gender-male {
    color: #00bfff;
    font-weight: bold;
}

.gender-female {
    color: #ff3333;
    font-weight: bold;
}

table .gender-male {
    color: #00bfff !important;
    font-weight: bold;
}

table .gender-female {
    color: #ff3333 !important;
    font-weight: bold;
}


/* ===============================
   MODAL
=================================*/

.modal.show.d-block {
    display: block;
    z-index: 1050;
}


/* ===============================
   ERROR UI
=================================*/

#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;
    }


/* ===============================
   LOADING PROGRESS
=================================*/

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }


/* ===============================
   CODE STYLE
=================================*/

code {
    color: #c02d76;
}


/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 768px) {

    .kpi-card h4 {
        font-size: 20px;
    }

    .kpi-card span {
        font-size: 12px;
    }

    .chart-container {
        padding: 15px;
    }
}
.kpi-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.kpi-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.kpi-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.kpi-warning {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.kpi-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.kpi-dark {
    background: linear-gradient(135deg, #343a40, #1d2124);
}
.section-title {
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}