/* PACS Cloud Cost Calculator Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    text-align: center;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.98);
    color: #1a1a1a;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1000px;
    flex-shrink: 0;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.05rem;
    color: #666;
    font-weight: 400;
}

.main-content {
    display: grid;
    grid-template-columns: 52% 48%; /* Exact 50:50 ratio */
    gap: 35px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr; /* Stack on narrow screens */
    }
    .results-panel { margin-top: 10px; }
    body {
        overflow: auto;
        height: auto;
    }
    .container {
        height: auto;
        overflow: visible;
    }
    .input-section, .results-panel {
        height: auto;
    }
}

.input-section {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow-y: scroll;
    height: 100%;
    min-height: 0;
}

/* Custom scrollbar for webkit browsers */
.input-section::-webkit-scrollbar {
    width: 10px;
}

.input-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.input-section::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.input-section::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.results-panel {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow-y: scroll;
    height: 100%;
    min-height: 0;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Custom scrollbar for results panel */
.results-panel::-webkit-scrollbar {
    width: 10px;
}

.results-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.results-panel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.results-panel::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Inner scroll container to keep tabs content scrollable while matching left height */
.results-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: scroll;
}

/* Custom scrollbar for results section */
.results-section::-webkit-scrollbar {
    width: 10px;
}

.results-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.results-section::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.results-section::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Placeholder can still scroll if tall */
.results-placeholder {
    overflow-y: scroll;
    flex: 1;
    padding: 20px;
}

/* Custom scrollbar for results placeholder */
.results-placeholder::-webkit-scrollbar {
    width: 10px;
}

.results-placeholder::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.results-placeholder::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.results-placeholder::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.form-section {
    background: white;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.form-section h2 {
    color: #667eea;
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 3px solid #667eea;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2::before {
    content: '📊';
    font-size: 1.4rem;
}

/* Generic responsive grid for grouping form inputs side by side */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px 25px;
    align-items: start;
    margin-bottom: 10px;
}

.form-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 20px;
}

/* Two-column enforced layout (will collapse at narrow widths) */
.form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

@media (max-width: 900px) {
    .form-grid.cols-2 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 600px) {
    .form-grid,
    .form-grid.cols-2,
    .form-grid.compact {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.section-note {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

input:hover, select:hover {
    border-color: #c1c8e4;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: white;
}

input::placeholder {
    color: #999;
    font-style: italic;
}

input:disabled, select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.component-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.component-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.component-header {
    font-weight: 700;
    color: #495057;
    margin-bottom: 18px;
    font-size: 1.15rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.component-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.component-spec {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #667eea;
}

.spec-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.spec-value {
    font-weight: 600;
    color: #333;
}

.component-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.optional-modules {
    margin-top: 20px;
}

.optional-module {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.optional-module:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.module-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.module-title {
    font-weight: 600;
    color: #495057;
    font-size: 1.08rem;
    margin-bottom: 0;
    cursor: pointer;
}

.module-description {
    font-size: 0.88rem;
    color: #6c757d;
    font-style: italic;
    margin-left: 10px;
}

.module-description-detail {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #1565c0;
}

.module-config {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.module-config .component-item {
    margin-bottom: 10px;
}

.count-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.count-selector label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.count-selector input {
    width: 80px;
    padding: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item label {
    font-size: 0.98rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.checkbox-item:hover label {
    color: #667eea;
}

.roadmap-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Roadmap grid to arrange items side by side */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px 24px;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}

.roadmap-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    transform: translateX(4px);
}

.roadmap-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.roadmap-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.roadmap-header label {
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    user-select: none;
    flex: 1;
    font-size: 1.02rem;
}

.roadmap-year {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 32px;
    margin-bottom: 8px;
}

.roadmap-year:last-child {
    margin-bottom: 0;
}

.roadmap-year label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    min-width: 140px;
    font-weight: 500;
}

.roadmap-year select {
    flex: 1;
    max-width: 280px;
    padding: 10px 14px;
    font-size: 0.92rem;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.roadmap-year select:hover {
    border-color: #c1c8e4;
    background: white;
}

.roadmap-year select:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.common-services {
    margin-top: 15px;
}

.service-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.service-info h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-item {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #17a2b8;
    font-size: 0.9rem;
}

.appstream-config {
    margin-top: 10px;
}

.appstream-details {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.appstream-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.storage-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.storage-title {
    font-weight: 600;
    color: #0c5460;
    margin-bottom: 10px;
}

.storage-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 35px auto 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.results-section {
    background: white;
    padding: 30px 20px 30px 30px; /* Reduced right padding to account for scrollbar */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.results-placeholder {
    text-align: center;
    padding: 60px 30px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.results-placeholder h2 {
    color: #667eea;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 700;
}

.results-placeholder p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #555;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.4;
    margin-bottom: 20px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-label {
    font-weight: 600;
    color: #555;
}

.cost-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.total-cost {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.total-cost .total-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.total-cost .total-value {
    font-size: 2rem;
    font-weight: 700;
}

.volume-tier-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.volume-tier-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 5px;
}

.warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-section {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    
    .results-panel {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        gap: 15px;
    }
    
    .component-details {
        grid-template-columns: 1fr;
    }
    
    .component-options {
        grid-template-columns: 1fr;
    }
    
    .storage-details {
        grid-template-columns: 1fr;
    }
    
    .results-section {
        padding: 20px;
    }
}

/* Other Costs Styling */
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    margin-bottom: 0;
    overflow-x: auto;
    padding: 8px 8px 0 8px;
    gap: 4px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    border-radius: 8px 8px 0 0;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.tab-btn:first-child {
    margin-left: 0;
}

/* Form should be flex container */
#costCalculatorForm {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Tab Navigation should not grow */
.tab-navigation {
    flex-shrink: 0;
}

/* Tab Content Styles */
.tab-content {
    background-color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tab-panel {
    display: none;
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.tab-panel.active {
    display: block;
}

/* Responsive tab navigation */
@media (max-width: 768px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .tab-navigation {
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
}

/* Override form section margins within tabs */
.tab-panel .form-section {
    margin-bottom: 25px;
}

.tab-panel .form-section:last-child {
    margin-bottom: 0;
}

/* Results Panel Tab Styles */
.results-tab-navigation {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    overflow-x: auto;
    flex-shrink: 0;
}

.results-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
    border-radius: 8px 8px 0 0;
    margin: 2px 2px 0 2px;
    flex: 1;
    text-align: center;
}

.results-tab-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.results-tab-btn.active {
    background-color: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Results Tab Content Styles */
.results-tab-content {
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.results-tab-panel {
    display: none;
    padding: 24px;
    flex: 1;
    overflow-y: scroll;
    min-height: 0;
}

.results-tab-panel.active {
    display: block;
}

/* Custom scrollbar for results tab panels */
.results-tab-panel::-webkit-scrollbar {
    width: 10px;
}

.results-tab-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.results-tab-panel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.results-tab-panel::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Inner content areas should stretch and scroll */
#summaryContent, #breakdownContent {
    overflow-y: scroll;
}

/* Custom scrollbar for summary and breakdown content */
#summaryContent::-webkit-scrollbar,
#breakdownContent::-webkit-scrollbar {
    width: 10px;
}

#summaryContent::-webkit-scrollbar-track,
#breakdownContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

#summaryContent::-webkit-scrollbar-thumb,
#breakdownContent::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

#summaryContent::-webkit-scrollbar-thumb:hover,
#breakdownContent::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

#resultsTabsContainer {
    flex: 1;
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#resultsTabsContainer.show {
    display: flex;
}

/* Chart Styles */
#costBreakdownChart {
    max-width: 100%;
    height: 100%;
}

.chart-container {
    position: relative;
    height: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 340px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .tab-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .calculate-btn {
        font-size: 1rem;
        padding: 16px 36px;
    }
}

/* Pie chart specific styles */
.chart-container canvas {
    padding: 5px;
}