@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --light-color:#F5F7F9;
    --dark-color:#2D3142;
    --primary-color:#7F5AF0;
    --lightvarient-darkColor:#2D3142df;
    --black-color:#000;
    --shadow-color:#e9e6f5;
}

/* Statistics Page Styling */
.whole-staticstics-cont {
    width: 100%;
    height: auto;
    padding: 2em 1em 3em 1em;
    max-width: 1200px;
    margin: 0 auto;
}

.blur-background{
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

/* Header styling */
.statistics-head {
    text-align: center;
    line-height: 2em;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 0.8s ease forwards;
}

.statistics-head h1 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.statistics-head h1 span {
    color: var(--primary-color);
}

.statistics-head p {
    color: var(--dark-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Chart container styling */
.statistics-table-cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 2rem 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
}

.statistics-table-cont:hover {
    transform: translateY(-5px);
}

.statistics-table-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.statistics-table-head p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.select-country {
    border: none;
    outline: none;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: 'Poppins',sans-serif;
    border: 1px solid var(--dark-color);
    padding: 0.7em 1em;
    margin: 0.5em;
    width: 20em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.select-country:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.2);
}

.btn-container {
    margin: 1rem 0;
}

.remove-country-btn {
    border: none;
    outline: none;
    padding: 0.7em 1.2em;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--light-color);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.remove-country-btn:hover {
    background-color: #6a48cf;
    transform: translateY(-2px);
}

.statistics-table1-cont {
    width: 100%;
    max-width: 800px;
    height: 400px;
    padding: 1em 0;
}

.source-text {
    font-size: 0.8em;
    font-weight: 300;
    padding: 0.5em;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Key Insights Section */
.statistics-insights {
    padding: 2rem 0;
    text-align: center;
}

.statistics-insights h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.statistics-insights h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.insights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    flex: 0 1 300px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.2rem;
}

.insight-icon i {
    font-size: 1.5rem;
    color: white;
}

.insight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.insight-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Error Message */
.error-msg-cont {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: none;
}

.error-msg-cont h3 {
    padding: 1em 1em .7em 1em;
    color: #e74c3c;
}

.error-btn {
    border: none;
    outline: none;
    padding: 0.8em 1.5em;
    font-size: 0.9em;
    font-family: 'Poppins',sans-serif;
    background-color: var(--primary-color);
    color: var(--light-color);
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background-color: #6a48cf;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    opacity: 0;
    animation: none;
}

/* Responsive Styling */
@media (max-width: 992px) {
    .insights-container {
        gap: 1.5rem;
    }
    
    .insight-card {
        flex: 0 1 45%;
    }
}

@media (max-width: 768px) {
    .statistics-table1-cont {
        width: 100%;
        height: 350px;
    }
    
    .statistics-table-cont {
        padding: 1.5rem 1rem;
    }
    
    .select-country {
        width: 100%;
        max-width: 300px;
    }
    
    .statistics-head h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .insight-card {
        flex: 0 1 100%;
    }
    
    .statistics-head {
        padding: 1rem;
    }
    
    .statistics-head p {
        font-size: 1rem;
    }
    
    .statistics-table-head p {
        font-size: 1rem;
    }
}


