/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
	 	font-size: 30px; /* Increase from default 16px */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h1 i {
    color: #3498db;
    margin-right: 15px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Section selector at top */
.section-selector {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.section-selector h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-selector h2 i {
    color: #e74c3c;
    margin-right: 10px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Main content - Two column layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

.section-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.section-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
}

.section-btn.active {
    background: #2196f3;
    border-color: #1976d2;
    color: white;
}

.section-btn i {
    font-size: 1.5rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: inherit;
}

/* Left: Diagram Panel */
.section-diagram {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

/* Right: Input Panel */
.input-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.input-panel h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.input-panel h2 i {
    color: #f39c12;
    margin-right: 10px;
}

/* Bottom: Results Section */
.results-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.results-section h3 i {
    color: #27ae60;
    margin-right: 10px;
}

/* Input form styles */
.input-form {
    display: grid;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.input-group input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group input.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

/* Calculate button */
.calculate-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    font-size: 1.1rem;
}

/* Error message */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    display: none;
}

.error-message.show {
    display: block;
}

/* Results styles */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 8px;
}

.unit {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Section diagram */
.section-diagram {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.section-diagram h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.section-diagram h3 i {
    color: #9b59b6;
    margin-right: 10px;
}

.diagram-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.diagram-container svg {
    max-width: 100%;
    max-height: 300px;
    width: 100%;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 30px;
    color: white;
    backdrop-filter: blur(10px);
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-diagram {
        order: 1;
    }
    
    .input-panel {
        order: 2;
    }
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .diagram-results-panel {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .section-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .section-btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Animation for smooth transitions */
.calculator-container,
.section-diagram {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
