/* ════════════════════════════════════════════════════════════════════════════
   ANTIGRAVITY KRYPTO-STEUERPORTAL (§ 23 EStG) - STYLESHEET
   ════════════════════════════════════════════════════════════════════════════ */

.tax-hero-banner {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(16, 21, 33, 0.85) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

.tax-hero-banner h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    max-width: 780px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.year-selector-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.select-year {
    font-weight: 600;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text-primary);
}

/* Exchange Cards Grid */
.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.exchange-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.exchange-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.exchange-logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ex-icon {
    font-size: 22px;
}

.exchange-logo-title h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ex-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.card-body {
    margin-bottom: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-val {
    font-weight: 600;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn {
    flex: 1;
}

/* Tax KPI Grid */
.tax-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tax-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(8px);
}

.tax-kpi-card.highlight-card {
    background: linear-gradient(135deg, rgba(16, 21, 33, 0.9) 0%, rgba(30, 58, 138, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kpi-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.kpi-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.kpi-badge.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-main-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.kpi-main-value.positive {
    color: var(--accent-emerald);
}

.kpi-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-green {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.dot-amber {
    background-color: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

.dot-red {
    background-color: var(--accent-rose);
    box-shadow: 0 0 8px var(--accent-rose);
}

.kpi-subtext {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.kpi-split-vals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.kpi-split-vals div {
    display: flex;
    justify-content: space-between;
}

.kpi-split-vals .lbl {
    color: var(--text-muted);
}

.kpi-split-vals .val {
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Export Bar */
.tax-export-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.export-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.export-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.export-buttons {
    display: flex;
    gap: 12px;
}

.btn-excel {
    background: linear-gradient(135deg, #107c41 0%, #0b5c2f 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 124, 65, 0.35);
}

.btn-excel:hover {
    background: linear-gradient(135deg, #138d4b 0%, #0d6b37 100%);
    transform: translateY(-1px);
}

.btn-pdf {
    background: linear-gradient(135deg, #b30b00 0%, #820800 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(179, 11, 0, 0.35);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #cc0d00 0%, #990900 100%);
    transform: translateY(-1px);
}

/* Table Section */
.table-section {
    padding: 24px;
    margin-bottom: 40px;
}

.table-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 20px;
}

.table-header-controls h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.table-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.table-filters {
    display: flex;
    gap: 10px;
}

.search-input {
    min-width: 220px;
}

.status-badge-taxable {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-badge-free {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .exchanges-grid, .tax-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tax-hero-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .exchanges-grid, .tax-kpi-grid {
        grid-template-columns: 1fr;
    }
    .tax-export-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .export-buttons {
        flex-direction: column;
    }
    .table-header-controls {
        flex-direction: column;
    }
    .table-filters {
        flex-direction: column;
        width: 100%;
    }
}
