/* HLR Calculator - Modern Clean Styles */

.hlr-calculator {
    max-width: 700px;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

.hlr-calc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.hlr-calc-sub {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hlr-calc-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.hlr-field {
    margin-bottom: 1rem;
}

.hlr-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.hlr-input, .hlr-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hlr-input:focus, .hlr-select:focus {
    outline: none;
    border-color: #c19b5c;
    box-shadow: 0 0 0 3px rgba(193, 155, 92, 0.15);
}

.hlr-hint {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.hlr-btn {
    background: #c19b5c;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.hlr-btn:hover {
    background: #a8834a;
}

.hlr-btn:active {
    transform: scale(0.98);
}

/* Results */
.hlr-results {
    margin-top: 1.5rem;
}

.hlr-results-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    animation: hlrFadeIn 0.3s ease;
}

@keyframes hlrFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hlr-results-inner h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
}

.hlr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hlr-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hlr-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.hlr-table tbody tr:hover {
    background: #fafafa;
}

.hlr-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hlr-positive {
    color: #059669;
}

.hlr-negative {
    color: #dc2626;
}

.hlr-total td {
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 1rem;
    padding-top: 1rem;
}

.hlr-grand-total td {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    border-top: 2px solid #c19b5c;
    padding-top: 0.75rem;
}

.hlr-divider td {
    padding: 0.25rem;
    border: none;
}

.hlr-notes {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #92400e;
}

.hlr-notes p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.hlr-notes ul {
    margin: 0;
    padding-left: 1.25rem;
}

.hlr-notes li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* Loading */
.hlr-loading {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
}

.hlr-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #c19b5c;
    border-radius: 50%;
    animation: hlrSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes hlrSpin {
    to { transform: rotate(360deg); }
}

/* Error */
.hlr-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hlr-calculator {
        margin: 1rem 0;
    }
    .hlr-calc-form,
    .hlr-results-inner {
        padding: 1rem;
    }
    .hlr-table {
        font-size: 0.82rem;
    }
    .hlr-table th,
    .hlr-table td {
        padding: 0.5rem;
    }
}
