/* =========================================
   LAYLINK PRO - TINH THUE TNCN
   CSS riêng cho trang tính thuế
   ========================================= */

.tax-hero {
    text-align: center;
    padding: 32px 16px 24px;
}

.tax-hero h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tax-hero h1 span {
    color: var(--primary);
}

.tax-hero p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 400px;
    margin: 0 auto;
}

.tax-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* Year Selector */
.tax-year-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tax-year-option {
    flex: 1;
    position: relative;
}

.tax-year-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tax-year-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-card);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.tax-year-label:hover {
    border-color: var(--primary);
}

.tax-year-option input[type="radio"]:checked+.tax-year-label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Info Alert */
.tax-info-alert {
    padding: 14px 16px;
    background: var(--primary-surface);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tax-info-alert strong {
    color: var(--primary);
}

/* Input Groups */
.tax-input-group {
    margin-bottom: 14px;
}

.tax-input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.tax-input-label .required {
    color: var(--primary);
}

.tax-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tax-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tax-input::placeholder {
    color: var(--text-tertiary);
    font-size: 13px;
}

.tax-input-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.tax-input-hint i {
    margin-right: 3px;
}

/* Card Section Headers */
.tax-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tax-card-title i {
    color: var(--text-tertiary);
}

/* Result Section */
.tax-result-section {
    display: none;
}

.tax-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 13px;
    color: var(--text-primary);
}

.tax-result-row:last-of-type {
    border-bottom: none;
}

.tax-bracket-detail {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: 16px;
    padding: 4px 0;
    line-height: 1.5;
}

.tax-bracket-detail strong {
    color: var(--text-primary);
}

/* Conclusion */
.tax-conclusion {
    padding: 18px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    line-height: 1.4;
}

.tax-conclusion .tax-conclusion-amount {
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin-top: 4px;
}

.tax-conclusion.pay-more {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.tax-conclusion.refund {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.tax-conclusion.no-tax {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.tax-conclusion.exact {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Bracket Table */
.tax-bracket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
}

.tax-bracket-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}

.tax-bracket-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
}

.tax-bracket-table tbody tr:nth-child(even) {
    background: var(--slate-50);
}

body.dark .tax-bracket-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Deduction Info */
.tax-deduction-info {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--primary-surface);
    border-radius: 8px;
}

/* Footer Info */
.tax-footer-info {
    text-align: center;
    padding: 24px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.tax-footer-info a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.tax-footer-info a:hover {
    text-decoration: underline;
}

/* Toast */
.tax-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-card);
}

.tax-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .tax-hero {
        padding: 24px 14px 18px;
    }

    .tax-hero h1 {
        font-size: 20px;
    }

    .tax-container {
        padding: 0 12px 100px;
    }

    .tax-year-group {
        gap: 8px;
    }

    .tax-year-label {
        padding: 12px 10px;
        font-size: 13px;
    }

    .tax-input {
        font-size: 14px;
        padding: 11px 12px;
    }

    .tax-bracket-table {
        font-size: 12px;
    }

    .tax-bracket-table thead th,
    .tax-bracket-table tbody td {
        padding: 8px 10px;
    }
}
