/* ============================================= */
/* Paycheck Calculator - Main Container */
/* ============================================= */
.pba-paycheck {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box !important;
}

.pba-paycheck *,
.pba-paycheck *::before,
.pba-paycheck *::after {
    box-sizing: border-box !important;
}

.pba-paycheck-container {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 40px !important;
    align-items: start !important;
}

@media (max-width: 1024px) {
    .pba-paycheck-container {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================= */
/* Tabs */
/* ============================================= */
.pba-paycheck-tabs {
    display: flex !important;
    gap: 0 !important;
    border-bottom: 2px solid #e5e7eb !important;
    margin-bottom: 32px !important;
    overflow-x: auto !important;
}

.pba-paycheck-tab {
    padding: 12px 20px !important;
    background: none !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    position: relative !important;
    transition: color 0.2s ease !important;
}

.pba-paycheck-tab:hover {
    color: #1e40af !important;
}

.pba-paycheck-tab.active {
    color: #1e40af !important;
    font-weight: 600 !important;
}

.pba-paycheck-tab.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: #1e40af !important;
    border-radius: 3px 3px 0 0 !important;
}

/* ============================================= */
/* Panels */
/* ============================================= */
.pba-paycheck-panel {
    display: none !important;
}

.pba-paycheck-panel.active {
    display: block !important;
}

.pba-paycheck-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 20px 0 !important;
}

.pba-paycheck-section-title:not(:first-child) {
    margin-top: 32px !important;
}

.pba-paycheck-help-text {
    font-size: 14px !important;
    color: #64748b !important;
    margin: -12px 0 24px 0 !important;
    line-height: 1.5 !important;
}

/* ============================================= */
/* Form Fields */
/* ============================================= */
.pba-paycheck-field {
    margin-bottom: 20px !important;
}

.pba-paycheck-field label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

.pba-paycheck-field input[type="number"],
.pba-paycheck-field input[type="text"],
.pba-paycheck-field select {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.pba-paycheck-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 40px !important;
}

.pba-paycheck-field input:focus,
.pba-paycheck-field select:focus {
    outline: none !important;
    border-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1) !important;
}

/* Input with prefix */
.pba-paycheck-input-group {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
}

.pba-paycheck-input-prefix {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    font-size: 15px !important;
    pointer-events: none !important;
}

.pba-paycheck-input-group input {
    padding-left: 30px !important;
}

/* ============================================= */
/* Radio Fields */
/* ============================================= */
.pba-paycheck-radio-field {
    margin-bottom: 24px !important;
}

.pba-paycheck-radio-group {
    display: flex !important;
    gap: 24px !important;
    margin-top: 8px !important;
}

.pba-paycheck-radio {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    color: #374151 !important;
}

.pba-paycheck-radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #1e40af !important;
    cursor: pointer !important;
}

/* ============================================= */
/* Field Groups (multi-column) */
/* ============================================= */
.pba-paycheck-field-group {
    display: grid !important;
    grid-template-columns: 140px 140px 1fr 44px !important;
    gap: 12px !important;
    align-items: end !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

@media (max-width: 768px) {
    .pba-paycheck-field-group {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .pba-paycheck-field-group .pba-paycheck-field:nth-child(3) {
        grid-column: 1 / -1 !important;
    }
    
    .pba-paycheck-field-group .pba-paycheck-remove-btn {
        grid-column: 2 !important;
        justify-self: end !important;
    }
}

.pba-paycheck-field-group .pba-paycheck-field {
    margin-bottom: 0 !important;
}

.pba-paycheck-remove-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.pba-paycheck-remove-btn:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}

/* ============================================= */
/* Add Button */
/* ============================================= */
.pba-paycheck-add-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: none !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.pba-paycheck-add-btn:hover {
    color: #1e3a8a !important;
}

.pba-paycheck-add-btn svg {
    color: #1e40af !important;
}

/* ============================================= */
/* Benefits Grid */
/* ============================================= */
.pba-paycheck-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 640px) {
    .pba-paycheck-benefits-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================= */
/* State Info Box */
/* ============================================= */
.pba-paycheck-info-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

.pba-paycheck-info-box svg {
    flex-shrink: 0 !important;
    color: #2563eb !important;
}

.pba-paycheck-info-box span {
    font-size: 14px !important;
    color: #1e40af !important;
    line-height: 1.5 !important;
}

/* ============================================= */
/* Results Panel */
/* ============================================= */
.pba-paycheck-results-panel {
    position: relative !important;
}

.pba-paycheck-results-sticky {
    position: sticky !important;
    top: 20px !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    padding: 28px !important;
}

@media (max-width: 1024px) {
    .pba-paycheck-results-sticky {
        position: static !important;
    }
}

/* ============================================= */
/* Donut Chart */
/* ============================================= */
.pba-paycheck-chart-container {
    position: relative !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 24px auto !important;
}

.pba-paycheck-donut {
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg) !important;
}

.pba-paycheck-donut-bg {
    stroke: #e5e7eb !important;
}

.pba-paycheck-donut-earnings {
    stroke: #8b5cf6 !important;
    transition: stroke-dasharray 0.5s ease !important;
}

.pba-paycheck-donut-taxes {
    stroke: #ef4444 !important;
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease !important;
}

.pba-paycheck-donut-benefits {
    stroke: #f59e0b !important;
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease !important;
}

.pba-paycheck-chart-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

.pba-paycheck-chart-label {
    display: block !important;
    font-size: 14px !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
}

.pba-paycheck-chart-value {
    display: block !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

/* ============================================= */
/* Summary */
/* ============================================= */
.pba-paycheck-summary {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 20px !important;
    margin-bottom: 20px !important;
}

.pba-paycheck-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.pba-paycheck-summary-row:last-child {
    border-bottom: none !important;
}

.pba-paycheck-summary-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 15px !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.pba-paycheck-summary-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
}

.pba-paycheck-summary-value {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.pba-paycheck-summary-total {
    background: #f8fafc !important;
    margin: 8px -16px 0 -16px !important;
    padding: 16px !important;
    border-radius: 10px !important;
}

.pba-paycheck-summary-total .pba-paycheck-summary-label {
    font-weight: 700 !important;
    color: #111827 !important;
}

.pba-paycheck-summary-total .pba-paycheck-summary-value {
    font-size: 20px !important;
    color: #8b5cf6 !important;
}

/* ============================================= */
/* Details Toggle */
/* ============================================= */
.pba-paycheck-details-toggle {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 16px !important;
}

.pba-paycheck-details-toggle:hover {
    background: #f1f5f9 !important;
}

.pba-paycheck-details-toggle.open svg {
    transform: rotate(180deg) !important;
}

.pba-paycheck-details-toggle svg {
    transition: transform 0.2s ease !important;
}

/* ============================================= */
/* Detailed Breakdown */
/* ============================================= */
.pba-paycheck-details {
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.pba-paycheck-details h4 {
    margin: 0 0 12px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.pba-paycheck-details h4:not(:first-child) {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
}

.pba-paycheck-detail-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
}

.pba-paycheck-detail-row span:first-child {
    color: #64748b !important;
}

.pba-paycheck-detail-row span:last-child {
    color: #111827 !important;
    font-weight: 600 !important;
}

/* ============================================= */
/* Calculate Button */
/* ============================================= */
.pba-paycheck-calculate-btn {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.3) !important;
}

.pba-paycheck-calculate-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important;
    box-shadow: 0 6px 10px -1px rgba(30, 64, 175, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ============================================= */
/* Disclaimer */
/* ============================================= */
.pba-paycheck-disclaimer {
    margin: 16px 0 0 0 !important;
    font-size: 12px !important;
    color: #9ca3af !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* ============================================= */
/* Responsive */
/* ============================================= */
@media (max-width: 768px) {
    .pba-paycheck {
        padding: 12px !important;
    }
    
    .pba-paycheck-tabs {
        gap: 0 !important;
    }
    
    .pba-paycheck-tab {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .pba-paycheck-section-title {
        font-size: 18px !important;
    }
    
    .pba-paycheck-results-sticky {
        padding: 20px !important;
    }
    
    .pba-paycheck-chart-container {
        width: 160px !important;
        height: 160px !important;
    }
    
    .pba-paycheck-chart-value {
        font-size: 20px !important;
    }
}
