/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: 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 !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: 400px 1fr;
    gap: 30px;
    align-items: start;
}

.controls-panel {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section h3 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
    background-color: white;
}

.form-group textarea {
    height: 120px !important;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.data-input-container {
    margin-bottom: 15px;
}

.data-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e40af !important;
    font-size: 15px;
}

.data-input-help {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: #eff6ff !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 4px !important;
}

.data-input-help small {
    color: #1e40af !important;
    font-size: 13px;
}

.data-preview {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    font-size: 13px;
}

.data-preview strong {
    color: #166534;
}

#dataPreviewText {
    color: #15803d;
    font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
   background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #475569;
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.graph-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.graph-container {
    position: relative;
    padding: 13px !important;
    background: #fafbfc;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#graphCanvas {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px !important;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.no-data-message {
    text-align: center;
    color: #6b7280;
    padding: 60px 20px;
}

.no-data-message h3 {
    margin-bottom: 10px;
    color: #9ca3af;
}

.stats-display {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.stats-display h3 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.stat-label {
    font-weight: 500;
    color: #374151;
}

.stat-value {
    font-weight: 600;
    color: #1e40af;
    font-family: 'Courier New', monospace;
}

.download-section {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    text-align: center;
}

.download-section h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .controls-panel {
        position: static;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    .controls-panel {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 35px !important;
    }
    
    .header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .controls-panel {
        padding: 15px;
    }
    
    .graph-container {
        padding: 15px;
        min-height: 400px;
    }
    
    #graphCanvas {
        height: 400px;
    }
}

/* Animation for smooth transitions */
.btn, .form-group input, .form-group select, .form-group textarea {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus styles for accessibility */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}