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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    width: min(360px, 90vw);
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.35);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-modal h2 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
}

.auth-modal p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.auth-input-group input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.auth-input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-error {
    color: #dc2626;
    font-size: 13px;
    display: none;
}

.auth-submit {
    margin-top: 4px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: 50px 1fr;
    background: white;
    overflow: hidden;
}

html.auth-locked .app-container {
    visibility: hidden;
    pointer-events: none;
}

.compact-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-action-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.header-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.header-action-button.danger {
    color: #fee2e2;
    border-color: rgba(254, 226, 226, 0.4);
    background: rgba(220, 38, 38, 0.25);
}

.header-action-button.danger:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.35);
    border-color: rgba(254, 226, 226, 0.7);
}

.header-icon {
    width: 22px;
    height: 22px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.compact-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-header p {
    opacity: 0.9;
    font-size: 12px;
    margin: 0;
    font-weight: 400;
}

.main-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
}

.main-layout.notebook-visible {
    grid-template-columns: 300px minmax(0, 1fr) minmax(420px, 520px);
}

/* Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-top: auto;
}

/* Notebook Panel */
.notebook-panel {
    border-left: 1px solid #e0e7ff;
    background: #f4f6ff;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 420px;
}

.main-layout.notebook-visible .notebook-panel {
    display: flex;
}

.notebook-panel-header {
    padding: 16px;
    border-bottom: 1px solid #dce3ff;
    background: linear-gradient(135deg, #eef1ff 0%, #f8f9ff 100%);
}

.notebook-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #303866;
}

.notebook-panel-subtitle {
    font-size: 12px;
    color: #6772a1;
    margin-top: 4px;
}

.notebook-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notebook-iframe-container {
    display: none;
    flex-direction: column;
    border: 1px solid #c7cdf5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.12);
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

.notebook-iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #dce3ff;
    background: linear-gradient(135deg, #eef1ff 0%, #f4f5ff 100%);
}

.notebook-iframe-title {
    font-size: 13px;
    font-weight: 600;
    color: #3a3f6f;
}

.notebook-iframe-status {
    font-size: 12px;
    color: #6a71a0;
}

.notebook-iframe {
    flex: 1;
    width: 100%;
    min-height: 480px;
    border: none;
    background: #0f172a;
}

.notebook-iframe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.notebook-iframe-overlay-message {
    font-size: 13px;
    line-height: 1.6;
}

.notebook-iframe-retry {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.notebook-iframe-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25);
}

.notebook-iframe-retry:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notebook-panel-actions {
    display: none;
    justify-content: flex-end;
}

.notebook-ipynb-preview-container {
    display: none;
    border: 1px solid #d4ddff;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(48, 56, 102, 0.08);
}

.notebook-ipynb-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #4c5483;
    margin-bottom: 8px;
}

.notebook-ipynb-preview {
    background: #111827;
    color: #e0f2fe;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

.main-layout.notebook-visible .notebook-panel-actions {
    display: flex;
}

.notebook-download-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #4f46e5;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.notebook-download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notebook-download-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.notebook-cell-preview-container {
    display: none;
    border: 1px solid #d4ddff;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(48, 56, 102, 0.08);
}

.notebook-cell-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #4c5483;
    margin-bottom: 8px;
}

.notebook-cell-preview {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.notebook-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: #6772a1;
    padding: 24px 12px;
    border: 1px dashed #c7cdf5;
    border-radius: 12px;
    background: #ffffff;
}

.notebook-empty-icon {
    font-size: 24px;
}

.notebook-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notebook-entry {
    background: #ffffff;
    border: 1px solid #d4ddff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(48, 56, 102, 0.08);
}

.notebook-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #5c6592;
    margin-bottom: 8px;
}

.notebook-entry-code {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
}

.notebook-entry-timestamp {
    font-size: 11px;
    color: #7b84b4;
}

@media (max-width: 1280px) {
    .main-layout.notebook-visible {
        grid-template-columns: 260px minmax(0, 1fr) minmax(0, 320px);
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    .sidebar {
        display: none;
    }

    .main-layout.notebook-visible {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-layout.notebook-visible .notebook-panel {
        display: none !important;
    }

    .main-layout.notebook-visible .notebook-panel-actions {
        display: none !important;
    }

    .main-layout.notebook-visible .notebook-ipynb-preview-container {
        display: none !important;
    }

    .main-layout.notebook-visible .notebook-iframe-container {
        display: none !important;
    }
}

.status-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator .session-suffix {
    font-size: 12px;
    color: #6c757d;
}

.session-info {
    font-size: 12px;
    color: #6c757d;
}

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

.stop-job-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dc3545;
    background: #ffffff;
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.stop-job-button:hover:not(:disabled) {
    background: #dc3545;
    color: #ffffff;
}

.stop-job-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stop-job-button.armed {
    background: #dc3545;
    color: #ffffff;
}

.stop-job-button.armed:hover:not(:disabled) {
    opacity: 0.85;
}

.conversation-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversation-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.conversation-subtitle {
    font-size: 11px;
    color: #6c757d;
}

.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.pill-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pill-icon {
    font-size: 14px;
    line-height: 1;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.conversation-item {
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.conversation-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.conversation-item.active {
    border-color: #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
}

.conversation-item.pinned {
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
}

.conversation-item.unread .conversation-title {
    color: #1d4ed8;
    font-weight: 700;
}

.conversation-item.skeleton {
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: default;
    box-shadow: none;
}

.conversation-skeleton {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.conversation-item.skeleton .conversation-skeleton-line {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2ff 0%, #f8fafc 50%, #eef2ff 100%);
    background-size: 200% 100%;
    animation: conversation-skeleton-shimmer 1.3s ease-in-out infinite;
}

.conversation-item.skeleton .conversation-skeleton-line.long {
    width: 80%;
}

.conversation-item.skeleton .conversation-skeleton-line.mid {
    width: 60%;
}

.conversation-item.skeleton .conversation-skeleton-line.short {
    width: 40%;
}

.conversation-item.skeleton .conversation-item-main,
.conversation-item.skeleton .conversation-title-row,
.conversation-item.skeleton .conversation-meta,
.conversation-item.skeleton .conversation-preview {
    display: none;
}

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

.conversation-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conversation-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversation-status-icon {
    display: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 2px;
}

.conversation-status-icon.active {
    display: inline-flex;
}

.conversation-status-icon.check {
    color: #22c55e;
}

.conversation-status-icon.spinner::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-top-color: #6366f1;
    animation: conversation-spin 0.75s linear infinite;
}

@keyframes conversation-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.conversation-title {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-rename {
    border: none;
    background: transparent;
    color: #6366f1;
    font-size: 12px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-rename:hover {
    background: rgba(99, 102, 241, 0.12);
}

.conversation-duplicate {
    border: none;
    background: transparent;
    color: #0ea5e9;
    font-size: 12px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-duplicate:hover {
    background: rgba(14, 165, 233, 0.12);
}

.conversation-meta {
    font-size: 11px;
    color: #6b7280;
}

.conversation-preview {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}

.conversation-delete {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 12px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-delete:hover {
    background: rgba(239, 68, 68, 0.12);
}

body.collections-hidden .collections-sidebar-section,
body.collections-hidden .upload-collection-selector,
body.collections-hidden #collectionModal {
    display: none !important;
}

.collections-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.collections-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.collections-subtitle {
    font-size: 11px;
    color: #6c757d;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.collection-list::-webkit-scrollbar {
    width: 6px;
}

.collection-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.collection-item {
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.collection-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.collection-item.active {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.18);
}

.collection-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.collection-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collection-pill {
    font-size: 10px;
    font-weight: 600;
    color: #4c1d95;
    background: rgba(129, 140, 248, 0.18);
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.collection-meta {
    font-size: 11px;
    color: #6b7280;
}

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

.collection-action {
    flex: 1 1 auto;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.collection-action:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4338ca;
}

.collection-action:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(226, 232, 240, 0.9);
    color: #6c757d;
}

.collection-empty {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    padding: 8px;
}

.upload-collection-selector {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
}

.upload-collection-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-collection-label span:first-child {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.upload-collection-summary {
    font-size: 11px;
    color: #4b5563;
}

.pill-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #1f2937;
}

.pill-button.secondary:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.35);
}

.collections-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(4px);
    z-index: 4000;
}

.collections-modal.hidden {
    display: none;
}

.collections-modal-content {
    width: min(420px, 90vw);
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 30px 60px -12px rgba(30, 64, 175, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.collections-modal-header {
    padding: 20px 24px 12px 24px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.collections-modal-header h3 {
    font-size: 18px;
    margin: 0;
    color: #111827;
}

.collections-modal-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.collections-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
}

.collections-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collections-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(209, 213, 219, 0.7);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.collections-modal-item:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.05);
}

.collections-modal-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.collections-modal-item-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.collections-modal-item-label strong {
    font-size: 13px;
    color: #1f2937;
}

.collections-modal-item-label span {
    font-size: 11px;
    color: #6b7280;
}

.collections-modal-empty {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 16px;
}

.collections-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px 24px;
    border-top: 1px solid rgba(209, 213, 219, 0.6);
}

.modal-button {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.1);
}

.modal-button.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
}

.modal-button:not(.primary) {
    background: rgba(229, 231, 235, 0.7);
    color: #1f2937;
}

.conversation-empty {
    font-size: 12px;
    color: #6b7280;
    padding: 16px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    text-align: center;
}

.conversation-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.conversation-pill-label {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.conversation-pill-title {
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-dot.disconnected {
    background: #dc3545;
    animation: none;
}

.status-dot.feedback {
    background: #f39c12;
    animation: pulse 1s infinite;
}

/* Session Actions */
.session-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-button {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    color: #6c757d;
}

.action-button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.clear-button:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.save-button:hover {
    color: #28a745;
    border-color: #28a745;
}

.copy-button:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* Agentic Reasoning Toggle */
.reasoning-mode-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reasoning-mode-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reasoning-mode-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.reasoning-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-label {
    background-color: #4CAF50;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(24px);
}

.toggle-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-mode-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.toggle-mode-subtitle {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
}

/* User info */
.user-info-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: #6c757d;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.logout-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    color: white;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.agent .message-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.avatar-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.header-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.agent .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
}

.message-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.user .message-time {
    text-align: right;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    margin-bottom: 4px;
}

.typing-indicator.show {
    display: block;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.input-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.message-input {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 22px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    border-color: #4CAF50;
}

.message-input::placeholder {
    color: #6c757d;
}

.send-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.command-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    text-align: center;
}

.streaming-message {
    border-left: 3px solid #4CAF50;
    padding-left: 12px;
    margin-left: 4px;
}

/* Reasoning Trace Manager Styles */
.reasoning-trace-container {
    margin-bottom: 12px;
}

.reasoning-step {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.reasoning-step.step-collapsed {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.show-all-steps .reasoning-step.step-collapsed {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    margin-bottom: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.step-number {
    color: #495057;
    font-weight: 600;
}

.step-timestamp {
    font-size: 11px;
    opacity: 0.8;
}

.step-content {
    color: #333;
    line-height: 1.4;
}

.collapsed-steps-indicator {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.collapsed-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.collapsed-icon {
    font-size: 16px;
    color: #adb5bd;
}

.show-all-btn {
    background: none;
    border: 1px solid #ced4da;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-all-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.reasoning-toggle-container {
    margin-top: 8px;
    text-align: center;
}

.reasoning-toggle-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reasoning-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.show-all-steps .reasoning-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

.show-all-steps .reasoning-toggle-btn .toggle-text::after {
    content: " (Hide)";
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* Final response styling removed - using natural reasoning trace display */

/* Legacy styles - keeping for compatibility */
.display-content-step {
    margin: 12px 0;
    padding: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.display-timestamp {
    font-size: 11px;
    color: #6c757d;
    text-align: right;
    margin-top: 6px;
    border-top: 1px solid #f8f9fa;
    padding-top: 6px;
}

.message-complete .reasoning-trace-container {
    opacity: 1;
}

/* Message Display Container Styles */
.message-display-container {
    margin-bottom: 16px;
}

.simple-display-container {
    margin-top: 12px;
}

.display-content-item {
    margin-bottom: 12px;
    padding: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.display-content-item:last-child {
    margin-bottom: 0;
}

/* Dual Toggle System Styles */
.top-toggle {
    display: none;
    margin-bottom: 8px;
}

.bottom-toggle {
    margin-top: 8px;
}

/* Show top toggle and modify bottom toggle when expanded */
.show-all-steps .top-toggle {
    display: block;
}

.show-all-steps .bottom-toggle .toggle-icon {
    transform: rotate(180deg);
}

.show-all-steps .bottom-toggle .toggle-text::after {
    content: " (Hide)";
}

/* Hide display container separator when no plots */
.message-display-container:empty {
    display: none;
}

/* Content Fade Effect Styles */
.step-content.long-content {
    position: relative;
}

.step-content.content-faded {
    max-height: 150px;
    overflow: hidden;
}

.step-content.content-faded::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #f8f9fa);
    pointer-events: none;
}

.content-fade-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.expand-content-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ced4da;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.expand-content-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.step-content:not(.content-faded) .content-fade-overlay {
    position: static;
    text-align: right;
    margin-top: 8px;
}

.step-content:not(.content-faded)::after {
    display: none;
}


/* Responsive design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-rows: 45px 1fr;
    }
    
    .compact-header {
        padding: 10px 15px;
    }
    
    .compact-header h1 {
        font-size: 18px;
    }
    
    .compact-header p {
        display: none;
    }

    .header-left {
        gap: 8px;
    }

    .header-right {
        display: none;
    }

    .conversation-list {
        max-height: 180px;
    }

    .sidebar-toggle {
        display: block;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        position: relative;
    }

    .sidebar {
        position: absolute;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .reasoning-step {
        padding: 6px 10px;
        margin-bottom: 6px;
    }
    
    .step-header {
        font-size: 11px;
    }
    
    .step-content {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .expand-content-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .reasoning-toggle-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Final response mobile styling removed */
    
    /* Mobile optimizations for new plot positioning layout */
    .message-display-container {
        margin-bottom: 12px;
    }
    
    .simple-display-container {
        margin-top: 10px;
    }
    
    .display-content-item {
        margin-bottom: 8px;
        padding: 6px;
    }
    
    .display-timestamp {
        font-size: 10px;
    }
    
    .top-toggle, .bottom-toggle {
        margin: 6px 0;
    }
    
    .reasoning-toggle-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .input-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .app-container {
        grid-template-rows: 40px 1fr;
    }
    
    .compact-header {
        padding: 8px 12px;
    }
    
    .compact-header h1 {
        font-size: 16px;
    }
    
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .input-container {
        padding: 12px;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Display content styling */
.display-content {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.pandas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.pandas-table th {
    background: #4CAF50;
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
}

.pandas-table td {
    padding: 6px 12px;
    border-bottom: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
}

.pandas-table tr:hover {
    background-color: #f5f5f5;
}

.pandas-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.image-display {
    text-align: center;
}

.display-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.display-image:hover {
    transform: scale(1.02);
}

.display-error {
    color: #dc3545;
    font-style: italic;
    padding: 8px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Sidebar File Management Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 16px 8px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f8fff9;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 6px;
}

.upload-text {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.3;
}

.upload-text strong {
    color: #4CAF50;
}

.file-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 3px;
    font-size: 11px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 14px;
    color: #6c757d;
    flex-shrink: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}

.file-size {
    color: #6c757d;
    font-size: 10px;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.file-action {
    padding: 3px 6px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 20px;
    text-align: center;
}

.file-delete {
    background: #dc3545;
    color: white;
}

.file-delete:hover {
    background: #c82333;
}

.upload-progress {
    display: none;
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-status {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.upload-speed {
    font-size: 11px;
    color: #7c8a96;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.files-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 4px 0;
}

.files-toggle:hover {
    color: #4CAF50;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

/* Output files specific styles */
.output-files-toggle {
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 8px;
}

.output-files-toggle:hover {
    color: #4CAF50;
}


.output-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fff9;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}

.output-file-item:last-child {
    margin-bottom: 0;
}

.output-file-item .file-icon {
    color: #4CAF50;
}

.output-file-item .file-name {
    color: #2e7d32;
    font-weight: 600;
}

/* Enhanced file action buttons */
.file-view {
    background: #2196F3;
    color: white;
}

.file-view:hover {
    background: #1976D2;
}

.file-download {
    background: #4CAF50;
    color: white;
}

.file-download:hover {
    background: #45a049;
}

.file-actions {
    display: flex;
    gap: 4px;
}

.file-action {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 24px;
    text-align: center;
}

.file-action:hover {
    transform: scale(1.05);
}

.file-assign {
    background: #e5e7eb;
    color: #1f2937;
}

.file-assign:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #4338ca;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.file-operation-progress {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.operation-progress-bar {
    width: 100%;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.operation-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    width: 0%;
}
