* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    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 !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: 350px 1fr;
    gap: 30px;
    min-height: 600px;
}

.form-section {
    background: #f8fafc !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1px solid #e2e8f0 !important;
    height: fit-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px !important;
    border: 2px solid #e2e8f0 !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, select:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    cursor: pointer;
}

.line-input {
    background: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
}

.line-input:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.line-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.line-header h3 {
    color: #2d3748 !important;
    font-size: 1.1rem;
}

.color-input {
    width: 50px !important;
    height: 40px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
	padding:0px !important
}

.color-input:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.checkbox-group {
    margin: 25px 0;
    padding: 20px !important;
    background: white !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #667eea;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
    transform: translateY(-1px) !important;
}

.chart-section {
    background: white !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-container {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

#chartCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.tooltip {
    position: fixed;
    background: rgba(45, 55, 72, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tooltip.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 350px 1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-section {
        padding: 25px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 35px !important;
    }
    
    .chart-section {
        padding: 2px !important;
    }
}

@media (max-width: 480px) {
    .line-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .color-input {
        width: 40px;
        height: 35px;
    }
    
    .checkbox-group {
        padding: 15px;
    }
    
    .form-section {
        padding: 20px;
    }
}