/* ========================================
   Embeddings Tab Layout
   ======================================== */

.embeddings-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100vh - 145px);
    padding: 16px;
    overflow: hidden;
}

.embeddings-panel {
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.embeddings-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.embeddings-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.embeddings-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    position: sticky;
    top: 0;
}

.embeddings-jobs-section {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow content to shrink */
}

#embedding-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .embeddings-layout {
        height: auto;
        min-height: calc(100vh - 145px);
        padding: 12px;
    }

    .embeddings-content {
        padding: 12px;
        gap: 16px;
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .embeddings-actions {
        gap: 6px;
        position: static; /* Remove sticky on mobile */
    }
}
