/**
 * CodeIQ Brand Color Enhancement
 * Clean white design with tasteful purple/magenta accents
 * Brand colors ONLY on: active states, buttons, borders, accent text
 */

/* ==================== TOP BAR / TAB BAR ==================== */

/* Tab bar - clean white */
.tab-bar {
    background: #ffffff;
    border-bottom: 1px solid #d4d0c8;
}

/* Session tabs - inactive state - clean neutral */
.tab {
    background: #faf8f5;
    border-right: 1px solid #d4d0c8;
}

.tab:hover {
    background: #f5f2ed;
}

/* Session tabs - active state with brand accent */
.tab.active {
    background: #ffffff;
    border-bottom: 3px solid #c4576a;
    box-shadow: inset 0 -2px 8px rgba(196, 87, 106, 0.08);
}

.tab.active::after {
    background: linear-gradient(90deg, #c4576a 0%, #c4576a 100%);
    height: 3px;
}

/* Tab title styling */
.tab.active .tab-title {
    color: #9a4054;
    font-weight: 600;
}

.tab .tab-subtitle {
    color: #6b6b6b;
}

.tab.active .tab-subtitle {
    color: #7a3345;
}

/* Platform icon in tab */
.tab .platform-icon {
    opacity: 0.7;
}

.tab.active .platform-icon {
    opacity: 1;
}

/* Add new tab button */
.add-tab-btn {
    background: #ffffff;
    border: 1px dashed #c4c0b8;
    color: #6b6b6b;
}

.add-tab-btn:hover {
    background: #faf8f5;
    border-color: #c4576a;
    color: #c4576a;
}

/* ==================== METRICS BAR ==================== */

/* Metrics container - clean white */
.metrics-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #d4d0c8;
}

/* Metric pills - white with subtle border */
.metric-pill,
.stats-pill,
.coding-stat {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.metric-pill:hover,
.stats-pill:hover,
.coding-stat:hover {
    border-color: rgba(196, 87, 106, 0.3);
    box-shadow: 0 4px 12px rgba(196, 87, 106, 0.08);
    transform: translateY(-1px);
}

/* Metric pill number - magenta accent */
.metric-pill .metric-value,
.stats-pill .stat-value,
.coding-stat-value {
    color: #9a4054;
    font-weight: 700;
}

/* ==================== BANK ACCOUNT TABS ==================== */

/* Bank tabs container - clean */
.bank-account-tabs {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d4d0c8;
}

/* Inactive bank tab - neutral */
.bank-tab {
    background: #faf8f5;
    border: 2px solid #d4d0c8;
    color: #475569;
}

.bank-tab:hover {
    background: #f5f2ed;
    border-color: rgba(196, 87, 106, 0.3);
}

/* Active bank tab - stays magenta gradient (proper accent use) */
.bank-tab.active {
    background: linear-gradient(135deg, #c4576a 0%, #c4576a 100%);
    border-color: #c4576a;
    color: white;
    box-shadow: 0 4px 14px rgba(196, 87, 106, 0.35);
}

/* Bank tab transaction count badge */
.bank-tab .transaction-count {
    background: #f5f2ed;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bank-tab.active .transaction-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ==================== FILTERS CONTAINER ==================== */

/* Search and filter area - clean white */
.review-filters,
.filters-container,
.filter-row {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    border-radius: 12px;
}

/* Search input */
.transaction-search-input,
.search-transactions {
    background: #ffffff;
    border: 1px solid #d4d0c8;
}

.transaction-search-input:focus,
.search-transactions:focus {
    border-color: #c4576a;
    box-shadow: 0 0 0 3px rgba(196, 87, 106, 0.1);
}

/* Filter dropdowns */
.filter-select,
.review-filters select {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    color: #3d3d3d;
}

.filter-select:hover,
.review-filters select:hover {
    border-color: #c4c0b8;
}

.filter-select:focus,
.review-filters select:focus {
    border-color: #c4576a;
    box-shadow: 0 0 0 3px rgba(196, 87, 106, 0.1);
}

/* ==================== TABLE HEADER ==================== */

/* Transaction table header - clean light gray */
.transaction-table thead {
    background: #faf8f5;
    border-bottom: 2px solid #d4d0c8;
}

.transaction-table th {
    color: #3d3d3d;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: none;
}

/* Sortable column headers */
.transaction-table th.sortable:hover {
    background: #f5f2ed;
    color: #9a4054;
}

.transaction-table th.sorted {
    color: #c4576a;
}

/* ==================== REVIEW HEADER ==================== */

/* Main review header area - clean white */
.review-header {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* View toggle buttons (Transactions, VAT Audit, Accounts, etc.) */
.view-toggle-btn,
.filter-tab {
    background: #faf8f5;
    border: 1px solid #d4d0c8;
    color: #475569;
}

.view-toggle-btn:hover,
.filter-tab:hover {
    background: #f5f2ed;
    border-color: #c4c0b8;
}

.view-toggle-btn.active,
.filter-tab.active {
    background: linear-gradient(135deg, #c4576a 0%, #c4576a 100%);
    border-color: #c4576a;
    color: white;
    box-shadow: 0 2px 8px rgba(196, 87, 106, 0.3);
}

/* ==================== CREDITS BADGE ==================== */

.credits-badge,
.credits-display {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    color: #475569;
}

/* ==================== BACK BUTTON ==================== */

.back-btn,
.back-to-dashboard-btn {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    color: #475569;
}

.back-btn:hover,
.back-to-dashboard-btn:hover {
    background: #faf8f5;
    border-color: #c4c0b8;
    color: #3d3d3d;
}

/* ==================== POST TO PLATFORM BUTTON ==================== */

/* Primary action button - magenta is appropriate here */
.post-btn,
.post-to-platform-btn,
[class*="post-to"] {
    box-shadow: 0 4px 14px rgba(196, 87, 106, 0.3);
}

.post-btn:hover,
.post-to-platform-btn:hover,
[class*="post-to"]:hover {
    box-shadow: 0 6px 20px rgba(196, 87, 106, 0.4);
    transform: translateY(-1px);
}

/* ==================== SCROLLBAR STYLING ==================== */

/* Custom scrollbar - neutral with subtle brand on hover */
.tab-bar::-webkit-scrollbar,
.transaction-table-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.tab-bar::-webkit-scrollbar-track,
.transaction-table-wrapper::-webkit-scrollbar-track {
    background: #f5f2ed;
    border-radius: 3px;
}

.tab-bar::-webkit-scrollbar-thumb,
.transaction-table-wrapper::-webkit-scrollbar-thumb {
    background: #c4c0b8;
    border-radius: 3px;
}

.tab-bar::-webkit-scrollbar-thumb:hover,
.transaction-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== DASHBOARD BUTTON ==================== */

.dashboard-btn {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    color: #475569;
}

.dashboard-btn:hover {
    background: #faf8f5;
    border-color: #c4c0b8;
    color: #3d3d3d;
}

/* ==================== USER MENU ==================== */

.user-menu-trigger {
    background: #ffffff;
    border: 1px solid #d4d0c8;
}

.user-menu-trigger:hover {
    background: #faf8f5;
    border-color: #c4c0b8;
}

/* ==================== ANALYSE WITH RIQ BUTTON ==================== */

.btn-riq,
[class*="analyse-riq"],
button[onclick*="RiQ"] {
    background: #ffffff;
    border: 1px solid rgba(196, 87, 106, 0.25);
    color: #9a4054;
}

.btn-riq:hover,
[class*="analyse-riq"]:hover,
button[onclick*="RiQ"]:hover {
    background: #fdf2f8;
    border-color: #c4576a;
    color: #c4576a;
}

/* ==================== PROGRESS INDICATOR ==================== */

.progress-ring,
.session-progress {
    background: #ffffff;
}

/* ==================== PAGINATION ==================== */

.pagination-btn {
    background: #ffffff;
    border: 1px solid #d4d0c8;
    color: #475569;
}

.pagination-btn:hover {
    background: #faf8f5;
    border-color: #c4c0b8;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #c4576a 0%, #c4576a 100%);
    border-color: #c4576a;
    color: white;
}

/* ==================== SUBTLE HOVER EFFECTS ==================== */

/* Table row hover - neutral gray, not purple */
.transaction-table tbody tr:hover {
    background: #faf8f5;
}

/* ==================== EMPTY STATE ==================== */

.empty-state,
.no-transactions {
    background: #ffffff;
    border: 1px dashed #c4c0b8;
}

/* ==================== TOOLTIP STYLING ==================== */

[data-tooltip]:hover::after {
    background: #1e293b;
}
