/* ═══════════════════════════════════════════════════
   Promo Tracker — Component Styles (Quill, extras)
   ═══════════════════════════════════════════════════ */

/* ─── Quill Editor Overrides ─────────────────── */
.ql-container {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    border-color: var(--border) !important;
}

.ql-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    border-color: var(--border) !important;
    background: var(--bg) !important;
}

.ql-editor {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: normal !important;
}

/* ─── Tab Navigation ─────────────────────────── */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 0;
}

.tab-btn,
.tab {
    padding: 0.6rem 1.25rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.tab-btn::after,
.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition);
}

.tab-btn:hover,
.tab:hover { color: var(--primary); }

.tab-btn.active,
.tab.active {
    color: var(--primary);
}

.tab-btn.active::after,
.tab.active::after {
    background: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Search Input ───────────────────────────── */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.3rem;
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Year Selector ──────────────────────────── */
.year-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.year-selector .year-display {
    font-size: 1rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

/* ─── Skeleton Loading ───────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 200px; margin-bottom: 12px; }
.skeleton-card { height: 100px; }

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── File Upload ────────────────────────────── */
.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-drop-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.file-drop-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-drop-zone .browse-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

/* ─── Collapsible Section ────────────────────── */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 0;
    user-select: none;
}

.collapsible-header .chevron {
    transition: transform var(--transition);
}

.collapsible-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.collapsible-body {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-body.collapsed {
    max-height: 0 !important;
}

/* ─── Notification Bell ──────────────────────── */
.notification-bell {
    position: relative;
}

.notification-bell .badge-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-card);
}

/* ─── Rich Text Display ──────────────────────── */
.rich-text-display {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

.rich-text-display h1, .rich-text-display h2, .rich-text-display h3 {
    margin: 0.75rem 0 0.4rem;
}

.rich-text-display p { margin-bottom: 0.5rem; }

.rich-text-display a {
    color: var(--primary);
    text-decoration: underline;
}

.rich-text-display ul, .rich-text-display ol {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ─── Amount Display ─────────────────────────── */
.amount {
    font-family: 'SF Mono', 'Fira Code', 'IBM Plex Mono', monospace;
    font-weight: 600;
}

.amount-positive { color: var(--success); }
.amount-negative { color: var(--danger); }
