/* ==========================================================================
   ELITE PAYOUT TRACKER CSS
   Glassmorphism, Bar Charts, Tax Export Styling
   ========================================================================== */

/* Layout & Globals */
.po-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; gap: 24px; position: relative; overflow-x: hidden; }
.po-layout { display: flex; gap: 24px; align-items: flex-start; }
.po-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.po-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.po-layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.m-0 { margin: 0; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; } .pt-8 { padding-top: 8px; } .pt-16 { padding-top: 16px; } .pt-24 { padding-top: 24px; } .pb-8 { padding-bottom: 8px; } .pb-16 { padding-bottom: 16px; } .pb-24 { padding-bottom: 24px; } .border-top { border-top: 1px solid rgba(255,255,255,0.1); } .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; }
.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; } .flex-end { display: flex; justify-content: flex-end; align-items: center; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; }

/* 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-orange { color: #f97316; }
.bg-red { background: #ef5350; } .bg-green { background: #22c55e; } .bg-orange { background: #f97316; } .bg-gold { background: #fbbf24; } .bg-cyan { background: #06b6d4; }

/* 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(34,197,94,0.4); } 70% { box-shadow: 0 0 0 15px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }

/* Cards & Buttons */
.po-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; }

.po-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; }
.po-btn--primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); } /* Green theme for money */
.po-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5); }
.po-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.po-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.po-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.po-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.po-btn-icon:hover { color: white; transform: scale(1.1); }
.border-red { border-color: rgba(239,83,80,0.5) !important; } .border-red:hover { background: rgba(239,83,80,0.1) !important; color: #ef5350 !important; }

/* Inputs */
.po-input, .po-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; }
.po-input:focus, .po-select:focus { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.po-form-group { margin-bottom: 16px; }
.po-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.po-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Progress Bars */
.po-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.po-progress-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.16,1,0.3,1); }

/* Header */
.po-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.po-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.po-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.po-header__stats { display: flex; gap: 24px; }
.po-stat-card { text-align: center; }
.po-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.po-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Hero Metrics */
.po-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.po-hero-card { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; }
.po-big-val { font-size: 2rem; font-weight: 800; tabular-nums: tabular-nums; }

/* SVG Bar Chart */
.po-chart-container { width: 100%; height: 250px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); position: relative; }
.chart-svg { width: 100%; height: 100%; overflow: visible; padding: 20px; }
.chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.chart-bar { fill: #22c55e; transition: y 0.5s, height 0.5s; cursor: pointer; }
.chart-bar:hover { fill: #4ade80; filter: drop-shadow(0 0 5px rgba(34,197,94,0.5)); }
.chart-lbl { font-size: 0.7rem; fill: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; text-anchor: middle; }

/* Table */
.po-search { position: relative; width: 250px; }
.po-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.po-search input { width: 100%; padding: 8px 12px 8px 36px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; outline: none; font-size: 0.85rem; }

.po-table-wrap { overflow-x: auto; }
.po-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.po-table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
.po-table td { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.2s; }
.po-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Badges */
.po-badge { font-size: 0.65rem; padding: 4px 8px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.badge-pend { background: rgba(251,191,36,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.badge-appr { background: rgba(6,182,212,0.2); color: #06b6d4; border: 1px solid rgba(6,182,212,0.4); }
.badge-rcvd { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }

/* Sidebar Lists */
.po-firm-list, .po-method-list { display: flex; flex-direction: column; gap: 12px; }
.f-item { background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; border-left: 3px solid; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.f-item .title { font-weight: 700; color: white; }
.f-item .val { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Modals */
.po-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.po-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.po-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: fadeInUp 0.3s ease-out; padding: 32px; width: 90%; max-height: 90vh; overflow-y: auto; }
.po-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.po-modal__close:hover { color: white; }

/* Detail Specifics */
.po-detail-content { max-width: 800px; }
.po-hero-icon { font-size: 2.5rem; width: 60px; height: 60px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.po-breakdown-card { background: rgba(0,0,0,0.2); padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.po-bd-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 12px; }
.po-bd-row .lbl { color: rgba(255,255,255,0.6); }
.po-bd-row .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.po-verdict-box { padding: 12px; border-radius: 8px; font-weight: 700; text-align: center; font-size: 0.85rem; border: 1px solid transparent; }
.v-ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #22c55e; }
.v-warn { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); color: #fbbf24; }
.v-bad { background: rgba(239,83,80,0.1); border-color: rgba(239,83,80,0.3); color: #ef5350; }

/* Wizard */
.po-wizard-content { max-width: 600px; display: flex; flex-direction: column; }
.po-wizard-body { min-height: 250px; padding: 24px 0; }
.wiz-step { animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Tooltip */
.po-tooltip { position: fixed; background: #140f19; border: 1px solid rgba(192,132,252,0.4); padding: 12px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 2000; pointer-events: none; font-size: 0.8rem; color: white; transform: translate(-50%, -120%); transition: opacity 0.2s; white-space: nowrap; }