/*
 * Missive Integrations Sidebar - Main Stylesheet
 * Custom overrides for Dark Mode matching Missive + Slatin.pro brand
 */

:root {
    --bg-color: #1e1e1e;
    --card-bg: #252526;
    --text-primary: #e0e0e0;
    --text-secondary: #9ca3af;
    --text-faint: #7a7a7a;
    --border-color: #3f3f46;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --input-bg: #2d2d2d;
    --input-border: #4b5563;
    --hover-bg: #333333;

    /* Slatin.pro Brand Colors */
    --brand-cyan: #00e0ff;
    --brand-green: #a3ff12;

    /* Section Icon Colors (brand-tinted) */
    --icon-notion: #e0e0e0;
    --icon-holded: #00e0ff;
    --icon-clickup: #7b68ee;
    --icon-mailerlite: #09c269;
    --icon-conversations: #f59e0b;

    /* Status Left Border Colors */
    --status-border-paid: #10b981;
    --status-border-accepted: #22c55e;
    --status-border-sent: #3b82f6;
    --status-border-draft: #6b7280;
    --status-border-pending: #f59e0b;
    --status-border-voided: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #1e1e1e; /* Hardcoded fallback */
    background: var(--bg-color);
    height: 100%; /* Force full height */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1e1e1e; /* Hardcoded fallback */
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100%; /* Match html height */
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* overflow: hidden; Removed to allow natural height */
}

/* Global Header */
.global-header {
    padding: 12px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.version {
    font-size: 10px;
    color: var(--text-faint);
    font-weight: normal;
    margin-left: 4px;
}

.content {
    flex: 1;
    /* overflow-y: auto; Removed to prevent internal scrollbar */
    padding: 0;
}

/* Integration Section Styles */
.integration-section {
    /* border-bottom: 1px solid var(--border-color); Removed to fix double divider */
    padding: 8px 16px;
}

.integration-section:last-child {
    border-bottom: none;
}

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

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Brand-tinted section header icons */
.section-title svg {
    transition: color 0.2s ease;
}
#section-holded .section-title svg {
    color: var(--icon-holded);
}
#section-clickup .section-title svg {
    color: var(--icon-clickup);
}
#section-mailerlite .section-title svg {
    color: var(--icon-mailerlite);
}
#section-conversations .section-title svg {
    color: var(--icon-conversations);
}

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

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: #6b7280;
}

/* Common Styles */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0;
}
.field-value-row:hover .copy-btn {
    opacity: 1;
}
.copy-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}
.field-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}
.link-style {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.link-style:hover {
    text-decoration: underline;
    color: #60a5fa;
}
.field {
    margin-bottom: 8px;
}
.field-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}
.field-value {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Edit Mode Styles */
.edit-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--input-border) !important;
    border-radius: 4px;
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.edit-input:focus {
    outline: none;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color);
}

.edit-input.font-bold {
    font-weight: 700 !important;
    font-size: 14px;
}

.edit-textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--input-border) !important;
    border-radius: 4px;
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    -webkit-appearance: none;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    flex: 1;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-danger {
    flex: 1;
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: #6b7280;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.empty-value {
    color: #52525b;
    font-style: italic;
}

/* Privacy Mode Styles */
.privacy-blur {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.15s ease;
}
body:not(.privacy-mode) .privacy-blur {
    filter: none;
    user-select: auto;
}
#privacy-toggle {
    opacity: 0.6;
    transition: opacity 0.2s;
}
#privacy-toggle:hover {
    opacity: 1;
}
body.privacy-mode #privacy-toggle {
    opacity: 0.4;
}
body.privacy-mode #privacy-toggle:hover {
    opacity: 0.8;
}

/* State: Empty (no conversation selected) */
.state-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.state-empty p {
    font-size: 13px;
}

/* Loading Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, #3a3a3d 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

@keyframes researchShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

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

.skeleton-badge {
    width: 50px;
    height: 16px;
    border-radius: 8px;
}

/* Nested Estimate Styles */
.nested-estimate {
    margin-top: 8px;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1); /* Light blue tint */
    border-radius: 4px;
    /* border-left: 2px solid var(--accent-color); Removed as requested */
    font-size: 12px;
    position: relative;
}

/* Removed the connecting line ::before pseudo-element */

.nested-estimate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.nested-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Notion Specific Styles */
.client-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.client-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
}

.notion-link {
    flex-shrink: 0;
    margin-left: 8px;
}

.notion-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.2s ease;
}

.notion-link a:hover {
    background: #444;
    color: var(--text-primary);
}

.create-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.create-btn:hover {
    background: var(--accent-hover);
}

/* Placeholder Styles for Future Integrations */
.placeholder-content {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* MailerLite Styles */
.mailerlite-card {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}
.mailerlite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mailerlite-stats {
    font-size: 11px;
    color: var(--text-secondary);
}
.mailerlite-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.mailerlite-meta {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: right;
}

/* Conversations Section Styles */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.conversation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}
.conversation-card:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateX(2px);
}
.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
}
.conversation-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-date {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.conversation-preview {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 6px;
}
.conversation-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}
.conversation-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.conversation-status.open {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.conversation-status.closed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}
.conversation-status.snoozed {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.conversation-count {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}
.conversations-empty {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Holded Document Styles */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.doc-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    position: relative;  /* Contains sparkle ::before/::after elements */
    overflow: hidden;    /* Clips shimmer animation within card bounds */
}
.doc-item.estimate-standalone {
    background: #2a2a2b; /* Slightly lighter than card-bg (#252526) for differentiation */
    border-color: #4b5563; /* Slightly lighter border */
}

/* Status-based left border accents for document cards */
.doc-item.status-paid {
    border-left: 3px solid var(--status-border-paid);
    background: var(--card-bg);
}
.doc-item.status-accepted {
    border-left: 3px solid var(--status-border-accepted);
    background: var(--card-bg);
}
.doc-item.status-sent {
    border-left: 3px solid var(--status-border-sent);
    background: var(--card-bg);
}
.doc-item.status-draft {
    border-left: 3px solid var(--status-border-draft);
    background: var(--card-bg);
}
.doc-item.status-pending {
    border-left: 3px solid var(--status-border-pending);
    background: var(--card-bg);
}
.doc-item.status-voided {
    border-left: 3px solid var(--status-border-voided);
    background: var(--card-bg);
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.doc-row:last-child {
    margin-bottom: 0;
}
.doc-type {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}
.doc-date {
    font-size: 11px;
    color: var(--text-secondary);
}
.doc-total {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}
.doc-related {
    font-size: 11px;
    color: var(--accent-color);
    margin-top: 4px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}
.doc-related::before {
    content: '↳';
    font-size: 14px;
}
.doc-status, .task-status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px; /* Bubble style */
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    line-height: 1.2;
}
.payment-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    line-height: 1.2;
}

.status-paid { background: #065f46; color: #34d399; }
.status-accepted { background: #14532d; color: #4ade80; }
.status-sent { background: #1e40af; color: #60a5fa; }
.status-draft { background: #374151; color: #9ca3af; }
.status-pending { background: #92400e; color: #fbbf24; }
.status-voided { background: #991b1b; color: #fca5a5; }

/* Payment badge - clickable link to Stripe */
.payment-badge {
    background: #059669;
    color: #ecfdf5;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}
.payment-badge:hover {
    background: #047857;
}

/* REVISAR badge for null docNumber invoices */
.status-revisar { background: #dc2626; color: #fff; }

/* Animated gradient border for documents needing review */
@keyframes gradient-border-pulse {
    0%, 100% { border-left-color: #ef4444; }
    50% { border-left-color: #f97316; }
}
.doc-item.needs-review {
    border-left: 3px solid #ef4444;
    animation: gradient-border-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    position: relative;
}

/* ============================================
   EXPERIMENTAL: Sparkle animation for REVISAR cards
   To remove: Delete this entire section between the ===== markers
   ============================================ */
@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-15px) scale(1.2); opacity: 0.8; }
    90% { opacity: 1; }
}
@keyframes shimmer-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}
.doc-item.needs-review::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer-sweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.doc-item.needs-review::after {
    content: "✦ ✧ ✦";
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 8px;
    color: rgba(251, 191, 36, 0.6);
    animation: sparkle-float 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    letter-spacing: 3px;
}
/* ============================================
   END EXPERIMENTAL: Sparkle animation
   ============================================ */

/* Link Button (Divider Style) */
.link-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 0;
    position: relative;
    border-top: none; /* Ensure no double border */
}
.link-btn-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #3f3f46; /* Divider color */
    z-index: 0;
}
.link-btn {
    background: #252526; /* Match card background */
    color: #9ca3af;
    border: 1px solid #3f3f46;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Sit on top of divider */
    transition: all 0.2s ease;
    padding: 0;
}
.link-btn:hover {
    background: #3f3f46;
    color: #e5e7eb;
    border-color: #52525b;
    transform: scale(1.1);
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.modal {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #333;
}
.modal h3 { margin-top: 0; color: #e5e7eb; font-size: 16px; }
.modal-section { margin-bottom: 15px; }
.modal-label { display: block; color: #9ca3af; font-size: 12px; margin-bottom: 5px; }
.select-item {
    background: #2d2d2d;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}
.select-item:hover { background: #3d3d3d; }
.select-item.selected { border-color: #2563eb; background: #2d2d2d; }
.select-item-title { font-weight: bold; color: #e5e7eb; font-size: 13px; }
.select-item-desc { color: #9ca3af; font-size: 11px; margin-top: 2px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-cancel { background: transparent; color: #9ca3af; border: 1px solid #4b5563; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.btn-confirm { background: #2563eb; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.error-text { color: #ef4444; font-size: 12px; }

/* Holded Edit Modal */
.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
}
.close-modal-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}
.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}
.modal-body .field {
    margin-bottom: 12px;
}
.section-divider {
    margin: 20px 0 12px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.field-row {
    display: flex;
    gap: 12px;
}
.field-row > div {
    flex: 1;
}
.field-row .field-small {
    flex: 0 0 100px;
}

/* Scrollbar styling for dark mode */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Status Colors (Text Only) */
.text-paid { color: #34d399; }
.text-accepted { color: #4ade80; }
.text-sent { color: #60a5fa; }
.text-draft { color: #9ca3af; }
.text-pending { color: #fbbf24; }

/* Linked Item Styles in Modal */
.select-item {
    position: relative; /* For badge positioning */
}
.select-item.linked {
    opacity: 0.85;
    cursor: pointer;
    background: #2a2a2b;
    border-left: 3px solid #6366f1;
}
.select-item.linked-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2a2b;
}
.select-item-content {
    padding: 0;
}
.select-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.select-item-amount {
    font-weight: 600;
    color: var(--text-primary);
}
.select-item-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.select-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.select-item.linked:hover {
    background: #333336;
    opacity: 1;
}
.linked-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #374151;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 2px;
    text-transform: uppercase;
}
