* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
} */



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
/*     margin-bottom: 30px; */
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


 header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-section, .chart-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffeef2;
}

.form-section h2, .chart-section h2 {
    color:#483f3f !important;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid #4b85e6;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #594f4f;
    font-size: 0.95rem !important;
}

input[type="text"], select {
    width: 100%;
    padding: 12px 15px !important;
    border: 2px solid #bcb4b4 !important;
    border-radius: 8px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus, select:focus {
    outline: none !important;
    border-color: #4b85e6 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1) !important;
    transform: translateY(-2px);
}

small {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary, .btn-download {
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: #f8f9fa !important;
    color: #4b85e6 !important;
    border: 2px solid #4b85e6 !important;
    flex: 1;
}

.btn-secondary:hover {
    background: #4b85e6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.chart-container {
    text-align: center;
    margin: 30px 0;
    background: #fafafa;
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed #ffb3c6;
}

#chartCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legend {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffeef2;
    transition: all 0.3s ease;
}
#downloadSvg{
	display:none !important;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.legend-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.download-section {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-download {
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 139, 171, 0.4);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 35px !important;
    }
    
    .container {
        padding: 0px;
    }
    
    .form-section, .chart-section {
        padding: 20px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .form-section, .chart-section {
        padding: 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    #chartCanvas {
        width: 100%;
        height: 250px;
    }
}