@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --apple-bg: #000000;
    --apple-card: #1c1c1e;
    --apple-card-hover: #2c2c2e;
    --apple-border: rgba(255, 255, 255, 0.08);
    --apple-text: #f5f5f7;
    --apple-text-secondary: #86868b;
    --apple-blue: #0a84ff;
    --apple-blue-rgb: 10, 132, 255;
    --apple-green: #30d158;
    --apple-green-rgb: 48, 209, 88;
    --apple-orange: #ff9f0a;
    --apple-orange-rgb: 255, 159, 10;
    --apple-red: #ff453a;
    --apple-red-rgb: 255, 69, 58;
    --apple-purple: #bf5af2;
    --apple-purple-rgb: 191, 90, 242;
    --apple-teal: #64d2ff;
    --apple-teal-rgb: 100, 210, 255;
    
    --spring-transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-transition: all 0.25s ease-out;
}

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

body {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--apple-bg);
}
::-webkit-scrollbar-thumb {
    background: #3a3a3c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #48484a;
}

/* Background Gradients */
.bg-gradient-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.08) 0%, rgba(191, 90, 242, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}
.bg-gradient-glow-alt {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.06) 0%, rgba(100, 210, 255, 0.03) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--apple-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.sidebar-brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #d2d2d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--apple-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ease-out-transition);
    cursor: pointer;
}

.menu-item:hover, .menu-item.active {
    color: var(--apple-text);
    background-color: rgba(255, 255, 255, 0.06);
}

.menu-item.active {
    background-color: rgba(10, 132, 255, 0.15);
    color: var(--apple-blue);
    border-left: 3px solid var(--apple-blue);
}

.menu-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--apple-border);
    padding-top: 20px;
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--apple-text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--apple-green);
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px 48px;
    max-width: 1400px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.page-title p {
    color: var(--apple-text-secondary);
    font-size: 15px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 980px; /* Apple pill-style */
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--spring-transition);
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--apple-blue);
    color: #fff;
}
.btn-primary:hover {
    background-color: #3399ff;
    box-shadow: 0 0 16px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--apple-text);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background-color: var(--apple-red);
    color: #fff;
}
.btn-danger:hover {
    background-color: #ff6961;
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    padding: 24px;
    transition: var(--spring-transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    background-color: rgba(44, 44, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--apple-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

.stat-icon-bg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-bg.blue { background-color: rgba(10, 132, 255, 0.15); color: var(--apple-blue); }
.stat-icon-bg.green { background-color: rgba(48, 209, 88, 0.15); color: var(--apple-green); }
.stat-icon-bg.orange { background-color: rgba(255, 159, 10, 0.15); color: var(--apple-orange); }
.stat-icon-bg.purple { background-color: rgba(191, 90, 242, 0.15); color: var(--apple-purple); }

.stat-icon-bg svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Visualization Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.chart-card {
    background-color: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    padding: 24px;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-body {
    flex: 1;
    position: relative;
    min-height: 0; /* Important for Chart.js canvas sizing */
}

/* Filter Controls */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    background-color: rgba(28, 28, 30, 0.4);
    border: 1px solid var(--apple-border);
    border-radius: 14px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--apple-text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 980px;
    padding: 10px 16px 10px 42px;
    color: var(--apple-text);
    font-size: 14px;
    transition: var(--ease-out-transition);
    outline: none;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(10, 132, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.tab-filter-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 980px;
    gap: 2px;
}

.filter-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 980px;
    color: var(--apple-text-secondary);
    cursor: pointer;
    transition: var(--ease-out-transition);
    border: none;
    background: none;
    outline: none;
}

.filter-tab:hover {
    color: var(--apple-text);
}

.filter-tab.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--apple-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Data Grid (Table) */
.data-card {
    background-color: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.topics-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.topics-table th {
    padding: 16px 24px;
    border-bottom: 1px solid var(--apple-border);
    color: var(--apple-text-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.topics-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--apple-border);
    font-size: 14px;
    vertical-align: middle;
}

.topics-table tr {
    transition: var(--ease-out-transition);
}

.topics-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Table Text Formats */
.topic-title-cell {
    font-weight: 600;
    color: var(--apple-text);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-angle-sub {
    font-size: 12px;
    color: var(--apple-text-secondary);
    margin-top: 2px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-badge {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    color: var(--apple-teal);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.badge-pending_approval { background-color: rgba(255, 159, 10, 0.15); color: var(--apple-orange); }
.badge-approved { background-color: rgba(10, 132, 255, 0.15); color: var(--apple-blue); }
.badge-rejected { background-color: rgba(255, 69, 58, 0.15); color: var(--apple-red); }
.badge-pending_publish { background-color: rgba(191, 90, 242, 0.15); color: var(--apple-purple); }
.badge-published { background-color: rgba(48, 209, 88, 0.15); color: var(--apple-green); }
.badge-needs_rewrite { background-color: rgba(100, 210, 255, 0.15); color: var(--apple-teal); }
.badge-failed { background-color: rgba(255, 69, 58, 0.3); color: var(--apple-red); }

/* Table Metric Formats */
.metric-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.metric-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

/* Row Actions */
.row-actions {
    display: flex;
    gap: 8px;
}

.btn-action-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--apple-text-secondary);
    transition: var(--ease-out-transition);
}

.btn-action-icon:hover {
    color: var(--apple-text);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-action-icon.danger:hover {
    color: var(--apple-red);
    background-color: rgba(255, 69, 58, 0.15);
}

.btn-action-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Empty State */
.empty-state {
    padding: 60px 24px;
    text-align: center;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--apple-text-secondary);
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--apple-text-secondary);
    font-size: 14px;
    max-width: 320px;
    margin: 0 auto;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #1c1c1e;
    border: 1px solid var(--apple-border);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(0.95) translateY(10px);
    transition: var(--spring-transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-container.large {
    max-width: 1100px;
    height: 85vh;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--apple-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--apple-text-secondary);
    transition: var(--ease-out-transition);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--apple-text);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--apple-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--apple-text);
    font-size: 14px;
    transition: var(--ease-out-transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    background-color: rgba(255,255,255,0.09);
    border-color: var(--apple-blue);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Split Pane Draft Editor */
.draft-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(85vh - 130px);
    overflow: hidden;
}

.draft-editor-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid var(--apple-border);
}

.draft-editor-pane.preview {
    border-right: none;
    background-color: #0b0b0c;
}

.pane-header {
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--apple-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--apple-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pane-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.draft-textarea {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    color: #e3e3e6;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
}

/* Markdown Preview Rendering styles */
.markdown-preview {
    color: #e3e3e6;
    font-size: 15px;
    line-height: 1.7;
}

.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #fff;
}

.markdown-preview h1 { font-size: 26px; border-bottom: 1px solid var(--apple-border); padding-bottom: 8px; }
.markdown-preview h2 { font-size: 20px; }
.markdown-preview h3 { font-size: 16px; }

.markdown-preview p {
    margin-bottom: 16px;
}

.markdown-preview ul, .markdown-preview ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-preview li {
    margin-bottom: 6px;
}

.markdown-preview blockquote {
    border-left: 4px solid var(--apple-blue);
    background-color: rgba(10, 132, 255, 0.05);
    padding: 12px 20px;
    margin-bottom: 16px;
    font-style: italic;
    color: var(--apple-teal);
}

.markdown-preview img {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.markdown-preview code {
    background-color: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

/* Logs Terminal Console */
.terminal-console {
    background-color: #000;
    border: 1px solid #2c2c2e;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    height: 450px;
    overflow-y: auto;
    color: #00ff66;
    font-size: 13px;
    line-height: 1.6;
}

.terminal-line {
    white-space: pre-wrap;
    margin-bottom: 4px;
}

/* Loading animations */
.spinner {
    animation: spin 1s linear infinite;
}

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

.writing-spinner-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--apple-blue);
    font-weight: 500;
}

/* CSS Grid Columns for layout metrics */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive details */
@media(max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px 24px;
        border-right: none;
        border-bottom: 1px solid var(--apple-border);
    }
    .sidebar-brand {
        margin-bottom: 16px;
        justify-content: center;
    }
    .sidebar-menu {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    .menu-item {
        padding: 8px 12px;
        font-size: 14px;
    }
    .sidebar-footer {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 24px 16px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .header-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-input-wrapper {
        max-width: 100%;
    }
    .tab-filter-container {
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        padding: 4px;
    }
    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media(max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Thumbnails & Previews */
.table-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--apple-border);
    transition: var(--ease-out-transition);
    cursor: pointer;
    background-color: #0b0b0c;
}

.table-thumb:hover {
    transform: scale(1.1);
    border-color: var(--apple-blue);
}

.table-thumb-placeholder {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-text-secondary);
}

.edit-modal-image-preview {
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid var(--apple-border);
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #0b0b0c;
    display: none;
}

/* Responsive Draft Editor */
@media(max-width: 850px) {
    .draft-editor-split {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
    .draft-editor-pane {
        height: 350px;
        border-right: none;
        border-bottom: 1px solid var(--apple-border);
    }
    .draft-editor-pane.preview {
        border-bottom: none;
        height: 400px;
    }
    .modal-container.large {
        height: 95vh;
    }
}

