/* ==========================================================================
   ELITE TAX REPORT CSS
   Glassmorphism, Financial Tables, IRS Form Simulation
   ========================================================================== */

/* Layout & Globals */
.tax-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; position: relative; overflow-x: hidden; display: flex; flex-direction: column; }
.tax-layout { display: flex; gap: 24px; align-items: flex-start; }
.tax-main-view { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.tax-sidebar { width: 340px; flex-shrink: 0; position: sticky; top: 24px; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.hidden-mobile { display: flex; }
@media (max-width: 768px) { .hidden-mobile { display: none !important; } .tax-layout { flex-direction: column; } .tax-sidebar { width: 100%; } }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; } .p-16 { padding: 16px; } .p-24 { padding: 24px; } .pt-8 { padding-top: 8px; } .pb-8 { padding-bottom: 8px; } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; } .text-black { color: #000; } .italic { font-style: italic; } .block { display: block; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .cursor-pointer { cursor: pointer; } .ml-4 { margin-left: 4px; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-white { color: #ffffff; } .text-blue { color: #3b82f6; }
.bg-purple { background: #c084fc; color: #000; } .bg-cyan { background: #06b6d4; color: #000; } .bg-gold { background: #fbbf24; color: #000; } .bg-green { background: #22c55e; color: #000; } .bg-red { background: #ef5350; color: #fff; } .bg-dark { background: rgba(0,0,0,0.4); }
.border-red { border: 1px solid rgba(239,83,80,0.4); } .border-gold { border: 1px solid rgba(251,191,36,0.4) !important; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }
.spinning-slow { animation: spinSlow 3s linear infinite; }

/* Cards & Buttons */
.tax-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

.tax-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.tax-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.tax-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.tax-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.tax-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.tax-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.tax-btn-text { background: transparent; border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: 0.2s; padding: 0; }
.tax-btn-text:hover { filter: brightness(1.2); }

.tax-input, .tax-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.tax-input:focus, .tax-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.tax-form-group { margin-bottom: 16px; }
.tax-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.tax-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Banners */
.tax-disclaimer-banner { background: radial-gradient(circle at left, rgba(251,191,36,0.1) 0%, rgba(0,0,0,0.5) 100%); border: 1px solid rgba(251,191,36,0.3); border-radius: 16px; padding: 16px 24px; }
.tax-alert { padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: flex-start; gap: 12px; color: #fff; }
.tax-alert.bg-red { background: rgba(239,83,80,0.1); }

/* Header */
.tax-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; flex-shrink: 0; }
.tax-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.tax-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }

/* Config */
.tax-method-grid { display: flex; gap: 12px; }
.tax-method-btn { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; color: white; font-weight: 700; cursor: pointer; transition: 0.2s; text-align: left; }
.tax-method-btn:hover, .tax-method-btn.active { background: rgba(192,132,252,0.15); border-color: #c084fc; }

/* Results */
.tax-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tax-summary-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 16px; display: flex; flex-direction: column; }
.tax-summary-card .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.tax-summary-card .val { font-size: 2rem; font-weight: 800; tabular-nums: tabular-nums; line-height: 1.1; }
.tax-summary-card .sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* Tabs & Dropdown */
.tax-tabs { display: flex; gap: 16px; }
.tax-tab { background: transparent; border: none; color: rgba(255,255,255,0.5); font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; padding: 0 0 8px 0; border-bottom: 2px solid transparent; }
.tax-tab:hover { color: white; }
.tax-tab.active { color: #c084fc; border-bottom-color: #c084fc; }
.tax-pane { animation: fadeInUp 0.3s forwards; }

.tax-export-dropdown-wrap { position: relative; }
.tax-dropdown-menu { position: absolute; top: 100%; right: 0; width: 200px; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px; margin-top: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 100; animation: popIn 0.2s ease-out; }
.tax-dd-item { width: 100%; text-align: left; padding: 12px; background: transparent; border: none; color: white; font-weight: 600; font-size: 0.85rem; cursor: pointer; border-radius: 8px; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.tax-dd-item:hover { background: rgba(255,255,255,0.05); }

/* Table */
.tax-table-wrap { overflow-x: auto; }
.tax-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.tax-table th { text-align: left; padding: 12px; border-bottom: 2px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; position: sticky; top: 0; background: rgba(14,12,18,0.9); }
.tax-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.tax-table tr:hover td { background: rgba(255,255,255,0.02); cursor: pointer; }
.tr-wash td { color: #fbbf24; }

/* IRS Form Paper Sim */
.tax-paper-form { background: #fdfbf7; padding: 40px; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); color: #000; font-family: 'Times New Roman', serif; max-width: 900px; }
.tax-form-table th { color: #000; border-bottom: 2px solid #000; background: transparent; padding: 8px; }
.tax-form-table td { color: #000; border-bottom: 1px solid #ccc; padding: 8px; border-right: 1px solid #ccc; }
.tax-form-table td:last-child { border-right: none; }

/* Sidebar */
.tax-past-list { display: flex; flex-direction: column; gap: 12px; }
.past-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; cursor: pointer; transition: 0.2s; }
.past-item:hover { border-color: rgba(192,132,252,0.3); background: rgba(255,255,255,0.05); transform: translateX(-2px); }

/* Modals */
.tax-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.tax-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.tax-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }

.tax-giant-icon { font-size: 4rem; display: inline-block; }
.tax-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.tax-progress-fill { height: 100%; border-radius: 4px; transition: width 0.2s linear; }

.tax-chk-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.tax-chk-row input { accent-color: #fbbf24; width: 18px; height: 18px; cursor: pointer; }