/* Dashboard uses centralized CSS variables from app.css */

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-bottom: 1px solid var(--border-default);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 10px var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
    font-size: var(--font-size-base);
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-divider {
    height: 1px;
    background: var(--border-default);
    margin: var(--spacing-lg) 0;
}

.nav-section-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    padding: var(--spacing-sm) var(--spacing-md);
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-default);
}

.storage-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.storage-bar {
    height: 6px;
    background: var(--border-default);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.storage-used {
    height: 100%;
    background: var(--primary-color);
    transition: width var(--transition-slow);
}

.storage-text {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--border-default);
    color: var(--text-primary);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-2xl) var(--spacing-3xl);
    background: white;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.btn-create {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-create:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.breadcrumb h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
}

.view-toggle {
    display: flex;
    gap: 0;
    align-items: center;
}

.view-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #E1E1E1;
    border-radius: 0;
    color: #605E5C;
    cursor: pointer;
    transition: all 0.1s;
    display: none;
}

.view-btn:first-child {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.view-btn:last-child {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    border-left: none;
}

.view-btn:hover {
    background: #F3F2F1;
}

.view-btn.active {
    background: #EDEBE9;
    color: #323130;
    border-color: #E1E1E1;
}

/* Microsoft Details View */
.folders-table {
    background: white;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: white;
}

.table thead {
    background: white;
    border-bottom: 1px solid #E1E1E1;
}

.table thead th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #605E5C;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    border-bottom: 1px solid #E1E1E1;
}

.table tbody tr {
    border-bottom: 1px solid #F3F2F1;
    transition: background 0.1s;
    cursor: pointer;
    background: white;
}

.table tbody tr:hover {
    background: #F3F2F1;
}

.table tbody td {
    padding: 8px 12px;
    font-size: 13px;
    color: #323130;
    vertical-align: middle;
    border: none;
}

.folder-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #323130;
}

.folder-name-cell svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.1s;
}

.table tbody tr:hover .table-actions {
    opacity: 1;
}

.table-actions .action-btn {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 2px;
    color: #605E5C;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-actions .action-btn:hover {
    background: #EDEBE9;
    color: #323130;
}

.table-actions .action-btn.delete:hover {
    background: #FDE7E9;
    color: #A4262C;
}

.text-muted {
    color: #605E5C;
}

/* Grid View - Uses Bootstrap grid system */

/* Fix for dropdown overflow in grid */
.folders-grid .row {
    overflow: visible;
}

.folders-grid .row > [class*='col-'] {
    overflow: visible;
    position: relative;
}

.folder-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    height: 100%;
    overflow: visible;
    z-index: 1;
}

.folder-card:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    z-index: 50;
}

.folder-card:has(.dropdown.show) {
    z-index: 1052 !important;
}

.folder-icon {
    margin-bottom: 12px;
}

/* Folder color variations based on share status */
.folder-card.has-share .folder-icon svg path {
    fill: #10B981; /* Green for team-shared folders */
}

.folder-card.has-guest-share .folder-icon svg path {
    fill: #F59E0B; /* Orange for guest-shared folders */
}

.folder-card.has-both-shares .folder-icon svg path {
    fill: #8B5CF6; /* Purple for folders with both types of shares */
}

/* Share status legend */
.share-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    width: 100%;
}

.share-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
}

.share-legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-legend-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments for share legend */
@media (max-width: 768px) {
    .share-legend {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .share-legend-item {
        font-size: 12px;
    }
}

.folder-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.folder-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #EEF2FF;
    color: #6366F1;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
}

.folder-info p {
    font-size: 13px;
    color: #6B7280;
}

.folder-menu {
    position: absolute;
    right: 10px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

/* List View */
.folders-list .folder-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.folders-list .folder-list-item:hover {
    border-color: #6366F1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.folder-list-icon svg {
    width: 32px;
    height: 32px;
}

.folder-list-info {
    flex: 1;
}

.folder-list-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.folder-list-info p {
    font-size: 12px;
    color: #6B7280;
}

.folder-list-actions {
    display: flex;
    gap: 8px;
}

.folder-action-btn {
    padding: 8px;
    background: #F3F4F6;
    border: none;
    border-radius: 6px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.folder-action-btn:hover {
    background: #E5E7EB;
    color: #111827;
}

.folder-action-btn.delete:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 20px 0 8px;
}

.empty-state p {
    font-size: 14px;
    color: #6B7280;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 16px;
    }
    
    .folder-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .btn-create {
        width: 100%;
    }
}


/* Dropdown Menu Styles */
.dropdown {
    position: static;
}

.dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050 !important;
    position: absolute !important;
}

.dropdown.show {
    position: relative;
    z-index: 1051;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #F3F4F6;
    color: #111827;
}

.dropdown-item.text-danger {
    color: #DC2626;
}

.dropdown-item.text-danger:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #E5E7EB;
}

/* Breadcrumb Styles */
.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: #6366F1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #4F46E5;
    text-decoration: underline;
}

.breadcrumb-list .separator {
    color: #9CA3AF;
    margin: 0 4px;
}

.breadcrumb-list .active {
    color: #111827;
    font-weight: 600;
}

/* File Card Styles */
.file-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    height: 100%;
    overflow: visible;
    z-index: 1;
}

.file-card:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    z-index: 50;
}

.file-card:has(.dropdown.show) {
    z-index: 1052 !important;
}

.file-icon {
    margin-bottom: 12px;
}

/* Drag and Drop Zone */
.upload-drop-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-drop-content {
    text-align: center;
    color: white;
}

.upload-drop-content svg {
    margin-bottom: 20px;
}

.upload-drop-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Floating Upload Progress */
.floating-upload-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
    display: none;
}

.floating-upload-progress.show {
    display: block;
}

.floating-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.floating-upload-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.floating-upload-actions {
    display: flex;
    gap: 8px;
}

.floating-upload-btn {
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.floating-upload-btn:hover {
    background: #E5E7EB;
    color: #111827;
}

.floating-upload-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.floating-upload-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 8px;
}

.floating-upload-item-icon {
    width: 40px;
    height: 40px;
    background: #EEF2FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-upload-item-icon svg {
    width: 20px;
    height: 20px;
}

.floating-upload-item-info {
    flex: 1;
    min-width: 0;
}

.floating-upload-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.floating-upload-item-status {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
}

.floating-upload-item-progress {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.floating-upload-item-progress-bar {
    height: 100%;
    background: #6366F1;
    transition: width 0.3s ease;
}

.floating-upload-item.success .floating-upload-item-icon {
    background: #D1FAE5;
}

.floating-upload-item.success .floating-upload-item-icon svg {
    color: #10B981;
}

.floating-upload-item.error .floating-upload-item-icon {
    background: #FEE2E2;
}

.floating-upload-item.error .floating-upload-item-icon svg {
    color: #EF4444;
}

.floating-upload-item-status.success {
    color: #10B981;
}

.floating-upload-item-status.error {
    color: #EF4444;
}

.floating-upload-item.error .floating-upload-item-progress-bar {
    background-color: #EF4444;
}

.floating-upload-item-progress-bar.error {
    background-color: #EF4444 !important;
}

@media (max-width: 768px) {
    .floating-upload-progress {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Processing animation for upload progress */
.floating-upload-item-progress-bar.processing {
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #6366F1 100%);
    background-size: 200% 100%;
    animation: processing-animation 1.5s ease-in-out infinite;
}

@keyframes processing-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.floating-upload-item-status.processing {
    color: #8B5CF6;
}

/* File Thumbnail Styles */
.file-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.file-card .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preview Modal Styles */
#previewModalBody img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

#previewModalBody embed,
#previewModalBody iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.modal-xl {
    max-width: 90%;
}

/* Search Results Styles */
.search-bar {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #F3F4F6;
    background: #F9FAFB;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #F9FAFB;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F9FAFB;
}

.search-result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 8px;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-name mark {
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-result-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: #E0E7FF;
    color: #4338CA;
    margin-left: 8px;
    vertical-align: middle;
}

.search-result-label mark {
    background: #C7D2FE;
    color: #3730A3;
    padding: 1px 3px;
    border-radius: 2px;
}

.search-result-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
}

.search-result-type {
    flex-shrink: 0;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
}

.search-no-results svg {
    margin: 0 auto 16px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #DC2626;
    font-size: 14px;
}

/* Search results scrollbar */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #F9FAFB;
    border-radius: 0 12px 12px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}


/* ============================================
   Infinite Scroll Styles
   ============================================ */

.infinite-scroll-loading {
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: center;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-default);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-container p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

.infinite-scroll-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
}

.infinite-scroll-complete svg {
    width: 24px;
    height: 24px;
}

.infinite-scroll-complete p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.action-btn-delete:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FCA5A5;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Ensure action buttons don't trigger row click */
.action-buttons button {
    pointer-events: auto;
}

.folder-row td:last-child,
.file-row td:last-child {
    pointer-events: auto;
}

/* Folder Search Bar */
.folder-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    max-width: 300px;
    transition: all var(--transition-base);
}

.folder-search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.folder-search-bar svg {
    flex-shrink: 0;
}

.folder-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    min-width: 0;
}

.folder-search-bar input::placeholder {
    color: var(--text-tertiary);
}

/* Update content-header to accommodate search bar */
.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.content-header .breadcrumb {
    flex: 1;
    min-width: 200px;
}

.content-header .view-toggle {
    margin-left: auto;
}
