/* Global Styles */
.form-label { 
    font-weight: 500; 
}

.config-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.card-highlight {
    border-left: 4px solid #0d6efd;
}

.section-heading {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Table Styles */
.salary-table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.salary-table td {
    vertical-align: middle;
}

.component-group {
    background-color: rgba(13, 110, 253, 0.05);
    font-weight: 600;
}

.subcomponent {
    padding-left: 25px !important;
}

.subtotal {
    border-top: 1px solid #dee2e6;
    font-weight: 600;
}

.deduction {
    color: #dc3545;
}

.increase {
    color: #198754;
}

.decrease {
    color: #dc3545;
}

.info-tooltip {
    cursor: pointer;
    color: #6c757d;
}

.config-table {
    font-size: 0.9rem;
}

.config-table th, .config-table td {
    padding: 6px 10px;
}

/* Indicators */
.indicator {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.indicator-earnings {
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.5);
}

.indicator-reimbursements {
    background-color: rgba(13, 110, 253, 0.2);
    border: 1px solid rgba(13, 110, 253, 0.5);
}

.indicator-benefits {
    background-color: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.5);
}

.indicator-bonus {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.indicator-deductions {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

/* Tax Slabs */
.tax-slab {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin: 5px 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .salary-table {
        font-size: 0.9rem;
    }
    
    .subcomponent {
        padding-left: 15px !important;
    }
    
    .section-heading {
        font-size: 1.2rem;
    }
}

/* Animation for changes */
.highlight-change {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% { background-color: rgba(255, 193, 7, 0.2); }
    100% { background-color: transparent; }
}
