.calculator-section { background: #f8f9fa; border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; } .input-group-custom { margin-bottom: 1rem; position: relative; /* Ensure proper stacking context */ } .input-group-custom label { font-weight: 600; margin-bottom: 0.5rem; display: block; } /* Ensure input groups don't interfere with tooltips */ .input-group { position: relative; z-index: 1; } .slider-container { position: relative; margin: 10px 0; } .slider { width: 100%; height: 8px; border-radius: 5px; background: #ddd; outline: none; -webkit-appearance: none; } .slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #007bff; cursor: pointer; } .slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #007bff; cursor: pointer; border: none; } .scenario-card { border: 2px solid #e9ecef; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; transition: all 0.3s ease; } .scenario-card.active { border-color: #007bff; background-color: #f8f9ff; } .scenario-card.disabled { opacity: 0.6; background-color: #f8f9fa; } .metric-card { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; } .metric-value { font-size: 1.6rem; font-weight: bold; color: #007bff; line-height: 1.2; word-break: break-word; overflow-wrap: break-word; } .metric-label { color: #6c757d; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.5rem; } .chart-container { position: relative; background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 1.5rem; } /* Enhanced chart sizing for new layout */ .chart-container canvas { max-height: 400px; } /* Full-width chart containers */ .card-body canvas { width: 100% !important; } /* Primary chart gets extra height */ #instanceGrowthChart { height: 500px !important; } /* Secondary charts get good height */ #revenueChart, #cashFlowChart, #cspRevenueChart { height: 400px !important; } /* Enhanced layout styles for new design */ .sticky-top { z-index: 1020; } .card { transition: box-shadow 0.15s ease-in-out; } .card:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } /* Compact header controls */ .form-range { height: 4px; } .input-group-sm .form-control, .form-select-sm, .btn-sm { font-size: 0.825rem; } /* Clean chart headers */ .card-header { background: white !important; border: none !important; padding-bottom: 0.5rem; } .card-body { padding: 1.5rem; } /* Responsive chart heights */ @media (max-width: 768px) { #instanceGrowthChart { height: 350px !important; } #revenueChart, #cashFlowChart, #cspRevenueChart { height: 300px !important; } .card-body { padding: 1rem; } } @media (max-width: 576px) { #instanceGrowthChart { height: 250px !important; } #revenueChart, #cashFlowChart, #cspRevenueChart { height: 200px !important; } } /* Manual collapse functionality */ .collapse { display: none; } .collapse.show { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; transition: height 0.35s ease; } .export-buttons { position: sticky; top: 20px; background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; } .collapsible-section { border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 1rem; } .collapsible-header { background: #f8f9fa; padding: 1rem; cursor: pointer; border-radius: 8px 8px 0 0; transition: background-color 0.3s ease; } .collapsible-header:hover { background: #e9ecef; } .collapsible-content { padding: 1rem; display: none; } .collapsible-content.show { display: block; } .phase-settings { background: #f8f9fa; border-radius: 6px; padding: 1rem; margin-bottom: 1rem; } .currency-symbol { font-weight: bold; color: #28a745; } .loading-spinner { display: none; text-align: center; padding: 2rem; } .help-content { background: #f8f9fa; border-radius: 6px; padding: 1rem; } .help-content h6 { margin-bottom: 0.5rem; font-weight: 600; } .help-content p { margin-bottom: 0.75rem; line-height: 1.4; } .help-content p:last-child { margin-bottom: 0; } /* Bootstrap tooltip styling improvements */ .tooltip { font-size: 0.875rem; font-family: inherit; z-index: 9999 !important; /* Ensure tooltips appear above all other elements */ pointer-events: none; /* Prevent tooltip from interfering with mouse events */ } .tooltip .tooltip-inner { max-width: 250px; padding: 0.5rem 0.75rem; color: #fff; background-color: #212529; border-radius: 6px; box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); } .tooltip .tooltip-arrow { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); } .tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: #212529; } .tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #212529; } .tooltip.bs-tooltip-start .tooltip-arrow::before { border-left-color: #212529; } .tooltip.bs-tooltip-end .tooltip-arrow::before { border-right-color: #212529; } /* Enhanced cursor for tooltip elements */ [data-bs-toggle="tooltip"] { cursor: help; position: relative; } [data-bs-toggle="tooltip"]:hover { opacity: 0.8; } @media (max-width: 768px) { .chart-container { height: 300px; } .metric-value { font-size: 1.4rem; } .metric-card { padding: 1rem; } } @media (max-width: 576px) { .metric-value { font-size: 1.2rem; } .metric-card { padding: 0.75rem; margin-bottom: 0.75rem; } } /* Clean Dual Model Layout */ .model-comparison-indicator { font-size: 1.2rem; color: #6c757d; } /* Scenario selection enhancements */ .form-check { margin-bottom: 0.25rem; } .form-check-label { cursor: pointer; user-select: none; } .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; } /* Model result boxes */ .model-result-box { transition: all 0.2s ease; background: #fafafa; } .model-result-box:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* Enhanced main configuration styling */ .main-config-section { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .main-config-fields { padding: 1.5rem; background: #ffffff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e9ecef; } .main-config-fields .form-label { color: #2c3e50; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.75rem; } .main-config-fields .input-group-text { background-color: #f8f9fa; border-color: #dee2e6; font-weight: 600; color: #495057; } .main-config-fields .form-control { border-color: #dee2e6; font-size: 1.1rem; } .main-config-fields .form-control:focus { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); } /* Investment amount input enhancements */ #investment-amount { font-family: 'Courier New', monospace; font-weight: 600; text-align: right; padding-right: 1rem; } #investment-amount:focus { text-align: left; padding-left: 1rem; padding-right: 0.75rem; } #investment-amount::placeholder { font-family: system-ui, -apple-system, sans-serif; font-weight: normal; text-align: left; opacity: 0.6; } .main-config-fields .form-select { border-color: #dee2e6; font-size: 1.1rem; } .main-config-fields .form-select:focus { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); } /* Results Panel Styling */ .results-panel { position: sticky; top: 1rem; } .results-panel .card { border-radius: 12px; overflow: hidden; background: #ffffff; } .results-panel .card-header { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); border-bottom: none; padding: 1.25rem; } .results-panel .card-body { padding: 2rem 1.5rem; min-height: 400px; } .result-item { transition: all 0.3s ease; padding: 0.5rem; border-radius: 8px; } .result-item:hover { background: rgba(0, 123, 255, 0.02); transform: translateX(5px); } .result-icon { flex-shrink: 0; font-size: 1.2rem; transition: all 0.3s ease; } .result-item:hover .result-icon { transform: scale(1.1); } .result-metrics { border: 1px solid #dee2e6; transition: all 0.3s ease; } .result-item:hover .result-metrics { border-color: #007bff; background: rgba(248, 249, 250, 0.8) !important; } /* Enhanced form styling */ .form-check-lg .form-check-input { width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; } .form-check-lg .form-check-label { font-size: 1.1rem; margin-left: 0.5rem; } /* Enhanced range sliders */ .form-range { height: 8px; background: linear-gradient(to right, #e9ecef 0%, #dee2e6 100%); border-radius: 4px; margin: 1rem 0 0.5rem 0; } .form-range::-webkit-slider-thumb { width: 24px; height: 24px; background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); cursor: pointer; transition: all 0.2s ease; } .form-range::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); } .form-range::-moz-range-thumb { width: 24px; height: 24px; background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); cursor: pointer; transition: all 0.2s ease; } .form-range::-moz-range-thumb:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); } /* Button styling improvements */ .btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; font-weight: 600; border-radius: 8px; transition: all 0.3s ease; } .btn-outline-info:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3); } .btn-outline-secondary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3); } /* Advanced controls styling */ .advanced-controls-section { background: #f8f9fa; border-top: 3px solid #007bff; } .advanced-controls-section .card { transition: all 0.2s ease; border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .advanced-controls-section .card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); } .advanced-controls-section .card-header { font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.2); } /* Slider styling improvements */ .form-range { height: 6px; background: #e9ecef; border-radius: 3px; } .form-range::-webkit-slider-thumb { width: 18px; height: 18px; background: #007bff; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: pointer; } .form-range::-moz-range-thumb { width: 18px; height: 18px; background: #007bff; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: pointer; } /* Real-time results cards */ .results-card { transition: all 0.2s ease; border: 2px solid transparent; } .results-card:hover { border-color: #007bff; transform: translateY(-1px); } /* Growth scenario checkboxes */ .form-check-input:checked { background-color: #007bff; border-color: #007bff; } .form-check-label { cursor: pointer; user-select: none; transition: all 0.2s ease; } .form-check-label:hover { color: #007bff; } /* Responsive improvements */ @media (max-width: 991px) { .results-panel { position: static; margin-top: 2rem; } .results-panel .card-body { min-height: auto; padding: 1.5rem; } .result-item { margin-bottom: 1.5rem; } .result-item:last-child { margin-bottom: 0; } } @media (max-width: 768px) { .main-config-fields { padding: 1rem; margin: 0 -15px; border-radius: 0; border-left: none; border-right: none; } .main-config-fields .form-label { font-size: 1rem; } .main-config-fields .form-control, .main-config-fields .form-select { font-size: 1rem; } .btn-lg { font-size: 1rem; padding: 0.6rem 1.2rem; } .form-check-lg .form-check-input { width: 1.25rem; height: 1.25rem; } .form-check-lg .form-check-label { font-size: 1rem; } .results-panel .card-header { padding: 1rem; } .results-panel .card-body { padding: 1rem; } .result-icon { width: 35px !important; height: 35px !important; font-size: 1rem; } .advanced-controls-section .card { margin-bottom: 1rem; } .advanced-controls-section .card-body { padding: 1rem; } } @media (max-width: 576px) { .d-flex.gap-3.flex-wrap { flex-direction: column; gap: 0.75rem !important; } .btn-lg { width: 100%; justify-content: center; } .form-check-lg { margin-bottom: 0.75rem; } .results-panel .card-body { padding: 0.75rem; } .result-metrics .row { text-align: center; } .result-metrics .col-6 { margin-bottom: 0.5rem; } } /* Model comparison box */ .model-comparison-box { border: 1px solid #dee2e6; transition: all 0.2s ease; } .model-comparison-box:hover { border-color: #adb5bd; background-color: #f8f9fa !important; } /* Control section styling */ .controls-section { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 8px; padding: 1rem; } /* Enhanced form controls */ .form-range { height: 4px; margin-top: 0.5rem; } .form-range::-webkit-slider-thumb { background: #0d6efd; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .form-range::-moz-range-thumb { background: #0d6efd; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } /* Button group styling */ .btn-group-enhanced .btn { border-radius: 4px; margin-right: 0.25rem; } .btn-group-enhanced .btn:last-child { margin-right: 0; } /* Responsive adjustments */ @media (max-width: 768px) { .controls-section { padding: 0.75rem; } .model-result-box { margin-bottom: 1rem; } } /* Enhanced table styling for financial analysis */ .table-hover tbody tr:hover { background-color: rgba(0, 0, 0, 0.05); } .table-success { --bs-table-bg: rgba(40, 167, 69, 0.1); } .table-warning { --bs-table-bg: rgba(255, 193, 7, 0.1); } /* Tab styling improvements */ .nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; } .nav-tabs .nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; } .nav-tabs .nav-link:hover:not(.active) { border-color: #e9ecef #e9ecef #dee2e6; isolation: isolate; } /* Table cell improvements */ .table td { vertical-align: middle; } .table th { border-top: none; font-weight: 600; font-size: 0.875rem; } /* Better responsive tables */ @media (max-width: 768px) { .table-responsive { font-size: 0.8rem; } .table th, .table td { padding: 0.5rem 0.25rem; } } /* Monthly Breakdown Filter Controls */ .breakdown-filters { background: #f8f9fa; border-radius: 6px; padding: 1rem; margin-bottom: 1rem; } .breakdown-filters .form-check { margin-bottom: 0.25rem; } .breakdown-filters .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; } .breakdown-filters .form-check-label { cursor: pointer; user-select: none; font-size: 0.875rem; } /* Responsive breakdown filters */ @media (max-width: 768px) { .breakdown-filters { padding: 0.75rem; } .breakdown-filters .d-flex { flex-direction: column; gap: 0.5rem !important; } } /* Enhanced sticky header for monthly breakdown table */ .table-responsive { position: relative; } .table-responsive .sticky-top { position: sticky; top: 0; z-index: 10; background-color: #212529 !important; /* Ensure dark background stays */ } .table-responsive .sticky-top th { background-color: #212529 !important; border-color: #454d55 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* Ensure sticky header works in scrollable containers */ .table-responsive[style*="max-height"] .sticky-top { position: sticky; top: 0; z-index: 20; } /* Additional styling for better visibility */ .table-dark th { font-weight: 600; font-size: 0.875rem; white-space: nowrap; text-align: center; } .table-dark th:first-child { text-align: center; } .table-dark th:nth-child(n+4) { text-align: right; }