* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Arial', sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
} */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white;
    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 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px !important;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5298 !important;
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 15px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
    background: white !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none !important;
    border-color: #f4d03f !important;
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
    transform: translateY(-1px);
}

textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e6ed ;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
	padding:0 !important
}

input[type="color"]:hover {
    transform: scale(1.05);
}

small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2a5298;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}








.checkmark {
    width: 20px;
    height: 20px;
    background: white !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #f4d03f;
    border-color: #f4d03f;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: -2px;
    color: #2a5298;
    font-weight: bold;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #FFD700 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

.preview-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0 !important;
}

.canvas-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #e9ecef;
}

#scatterPlot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.download-section h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size:35px !important;
    }
    .canvas-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #e9ecef;
}
	 
    .form-section,
    .preview-section {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    #scatterPlot {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .form-section,
    .preview-section {
        padding: 15px;
    }
    
    input[type="text"],
    input[type="number"],
    textarea {
        padding: 10px 12px;
    }
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success animation */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn.success {
    animation: success 0.3s ease;
}