/* Components CSS – extracted from inline styles */

.result-card {
    background: linear-gradient(135deg, #264850 0%, #007caf 100%);
    color: white;
}
.allowance-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}
.loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007caf;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.table-info {
    background-color: #e8f4f8;
    border-left: 4px solid #007caf;
    padding: 10px;
    margin-bottom: 15px;
}
#salaryTableFull {
    font-size: 0.85rem;
}
#salaryTableFull th, #salaryTableFull td {
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
}
#salaryTableFull tr.table-primary td {
    font-weight: 600;
}
/* Tab Navigation */
.main-tabs .nav-link {
    color: var(--primary-color, #264850);
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.main-tabs .nav-link:hover {
    color: var(--secondary-color, #007caf);
    border-bottom-color: rgba(0,124,175,0.3);
    background: rgba(0,124,175,0.04);
}
.main-tabs .nav-link.active {
    color: var(--secondary-color, #007caf);
    border-bottom-color: var(--secondary-color, #007caf);
    background: rgba(0,124,175,0.06);
}
.main-tabs .nav-link.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.5;
}
.main-tabs .nav-link i {
    margin-right: 6px;
}
/* Kpi Cards */
.kpi-card {
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color, #007caf);
    transition: transform 0.2s ease;
}
.kpi-card:hover { transform: translateY(-2px); }
.kpi-card .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color, #264850);
    line-height: 1.2;
}
.kpi-card .kpi-label {
    font-size: 0.82rem;
    color: var(--muted-color, #6B7280);
    margin-top: 4px;
}
.kpi-card.highlight {
    background: linear-gradient(135deg, #264850 0%, #007caf 100%);
    border-left-color: #fefc5c;
}
.kpi-card.highlight .kpi-value,
.kpi-card.highlight .kpi-label { color: #fff; }
/* Slider Styles */
.range-group { margin-bottom: 1rem; }
.range-group label { font-weight: 500; margin-bottom: 4px; display: flex; justify-content: space-between; }
.range-group .range-value {
    font-weight: 700;
    color: var(--secondary-color, #007caf);
    min-width: 60px;
    text-align: right;
}
.range-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #dee2e6;
    border-radius: 3px;
    outline: none;
}
.range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color, #007caf);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,124,175,0.3);
}
.range-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color, #007caf);
    cursor: pointer;
    border: none;
}
/* Range corridor indicators */
.range-corridor-wrapper {
    position: relative;
}
.range-corridor-wrapper input[type="range"] {
    position: relative;
    z-index: 2;
    background: transparent !important;
}
.range-corridor-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    margin-top: -3px;
    background: #dee2e6;
    border-radius: 3px;
    z-index: 0;
}
.range-corridor-zone {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 3px;
    opacity: 0.6;
}
.range-corridor-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #6c757d;
}
.range-corridor-labels .corridor-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.corridor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
/* Chart containers */
.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 10px 0;
}
.chart-container canvas { height: 100% !important; }
/* Info badge */
.info-badge {
    display: inline-block;
    background: #e8f4f8;
    color: var(--primary-color, #264850);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}
.info-badge i { margin-right: 4px; }
/* Pension section headers */
.section-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color, #264850);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
/* Lock overlay for disabled tabs */
.tab-lock-overlay {
    text-align: center;
    padding: 60px 30px;
    color: var(--muted-color, #6B7280);
}
.tab-lock-overlay i { font-size: 2.5rem; margin-bottom: 15px; opacity: 0.3; }
.tab-lock-overlay p { max-width: 400px; margin: 0 auto; }
/* Responsive tab text */
@media (max-width: 768px) {
    .main-tabs .nav-link { padding: 10px 12px; font-size: 0.82rem; }
    .main-tabs .nav-link .tab-text-full { display: none; }
    .main-tabs .nav-link .tab-text-short { display: inline; }
    .kpi-card .kpi-value { font-size: 1.25rem; }
}
@media (min-width: 769px) {
    .main-tabs .nav-link .tab-text-short { display: none; }
}
/* Sticky left column on large screens */
@media (min-width: 992px) {
    .tab-pane > .row,
    .tab-pane > div:not(.tab-lock-overlay) > .row {
        align-items: flex-start;
    }
    .tab-pane > .row > .col-lg-7,
    .tab-pane > div:not(.tab-lock-overlay) > .row > .col-lg-7 {
        position: sticky;
        top: 20px;
    }
}
