/* Fashion Design System - Custom CSS */

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

:root {
    /* Color Palette */
    --primary-color: #FF9000;
    --primary-hover: #e57c00;
    --folder-yellow: #FFD600;
    --sidebar-bg: #FCFCFD;
    --sidebar-text: #343A40;
    --sidebar-active-bg: #343A40;
    --sidebar-border: rgba(52, 58, 64, 0.08);
    --card-bg: #fff;
    --card-border: #E5E7EB;
    --card-radius: 12px;
    --input-radius: 12px;
    --btn-radius: 12px;
    --btn-bg: #FF9000;
    --btn-hover-bg: #e57c00;
    --btn-text: #fff;
    --btn-outline: #FF9000;
    --btn-outline-hover: #fff3e0;
    --muted-text: #8A94A6;
    --table-header-bg: #F5F6FA;
    --table-border: #E5E7EB;
    --shadow: 0 2px 8px rgba(16,30,54,0.06);
    --badge-blue: #3B82F6;
    --badge-green: #10B981;
    --badge-red: #EF4444;
    --badge-gray: #E5E7EB;
    --storage-bar-bg: #CED4DA;
    --storage-bar-fill: linear-gradient(90deg, #3D3D3D 0%, #776F6F 52%, #3D3D3D 100%);
    --font-family: 'Fira Sans', sans-serif;
    --nav-text: #343A40;
    
    /* Additional color variables */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-300: #D1D5DB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    --secondary-color: #6B7280;
    
    /* Storage Colors */
    --storage-photos: #3B69F1;
    --storage-documents: #DC2323;
    --storage-sheets: #4AC11E;
    --storage-free: #495057;
    
    /* Typography */
    --font-family-sans: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #222;
    background-color: #FAFAFB;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Custom Button Styles */
.btn-custom {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-custom:active {
    transform: translateY(0);
}

.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-custom-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Button Size Variants */
.btn-custom-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-custom-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

/* Custom Card Styles */
.card-custom {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease-in-out;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.card-custom-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--card-border);
    background-color: var(--gray-50);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.card-custom-body {
    padding: var(--spacing-lg);
}

.card-custom-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--card-border);
    background-color: var(--gray-50);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* Custom Form Styles */
.form-custom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-custom-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-custom-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-custom-input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--card-border);
    border-radius: var(--input-radius);
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(255 144 0 / 0.1);
}

.form-custom-input.error {
    border-color: var(--danger-color);
}

.form-custom-error {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

/* Custom Modal Styles */
.modal-custom .modal-content {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-custom .modal-header {
    border-bottom: 1px solid var(--card-border);
    padding: var(--spacing-lg);
}

.modal-custom .modal-body {
    padding: var(--spacing-lg);
}

.modal-custom .modal-footer {
    border-top: 1px solid var(--card-border);
    padding: var(--spacing-lg);
}

/* Custom Table Styles */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background-color: var(--table-header-bg);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--muted-text);
    border-bottom: 2px solid var(--table-border);
}

.table-custom td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--table-border);
}

.table-custom tbody tr:hover {
    background-color: var(--gray-50);
}

/* Custom Badge Styles */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-custom-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-custom-success {
    background-color: var(--success-color);
    color: white;
}

.badge-custom-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-custom-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-custom-secondary {
    background-color: var(--gray-500);
    color: white;
}

/* Custom Alert Styles */
.alert-custom {
    padding: var(--spacing-md);
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-md);
}

.alert-custom-success {
    background-color: var(--success-color);
    color: white;
}

.alert-custom-warning {
    background-color: var(--warning-color);
    color: white;
}

.alert-custom-danger {
    background-color: var(--danger-color);
    color: white;
}

.alert-custom-info {
    background-color: var(--info-color);
    color: white;
}

/* Fashion Insights Styles */
.insight-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-badge, .season-badge, .year-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.category-badge {
    background-color: #e3f2fd;
    color: #1976d2;
}

.season-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.year-badge {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.season-year {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 500;
    font-size: 13px;
}

.file-details {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
}

.file-type {
    background-color: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
}

.status-toggle {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.status-toggle.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-toggle.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-edit {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-delete {
    background-color: #ffebee;
    color: #d32f2f;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inline-form {
    display: inline;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: #fef7f0;
}

.file-upload-area.error {
    border-color: var(--danger-color);
    background-color: #fef2f2;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.file-upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.file-upload-subtext {
    font-size: 14px;
    color: #6b7280;
}

.current-file {
    margin-top: 12px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

/* Admin Show Page Styles */
.insight-details-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.insight-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.insight-badges {
    display: flex;
    gap: 8px;
}

.insight-description {
    margin-bottom: 24px;
}

.insight-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.insight-description p {
    color: #6b7280;
    line-height: 1.6;
}

.insight-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.meta-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.meta-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.insight-tags h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.file-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.file-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-info-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.file-info-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
}

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

.insight-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: flex-start;
}

.quick-action-btn.activate {
    background: #d1fae5;
    color: #065f46;
}

.quick-action-btn.deactivate {
    background: #fee2e2;
    color: #991b1b;
}

.quick-action-btn.edit {
    background: #fff3e0;
    color: #f57c00;
}

.quick-action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Client Fashion Insights Styles */
.fashion-insights-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 32px;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.featured-insights {
    margin-top: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.featured-description {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.featured-link:hover {
    opacity: 0.8;
}

.filters-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.filters-toggle:hover {
    background: var(--primary-dark);
}

.filters-content {
    transition: all 0.3s ease;
}

.filters-content.collapsed {
    display: none;
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: grid;
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-input, .filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.filter-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.filter-clear {
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s;
}

.filter-clear:hover {
    color: var(--primary-color);
}

.insights-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.results-count {
    color: #6b7280;
    font-size: 14px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.insight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.insight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 48px;
}

.insight-content {
    padding: 20px;
}

.insight-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.insight-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    line-height: 1.4;
}

.insight-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

.insight-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.insight-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #6b7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.empty-state {
    text-align: center;
    padding: 64px 32px;
}

.empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
}

.pagination-section {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Client Show Page Styles */
.fashion-insight-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-hover);
}

.insight-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.insight-main {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insight-header {
    margin-bottom: 32px;
}

.insight-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.insight-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.insight-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.insight-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.stat i {
    color: var(--primary-color);
}

.insight-content {
    margin-bottom: 32px;
}

.insight-preview {
    margin-bottom: 24px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.insight-tags h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.insight-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
    min-width: 80px;
}

.info-value {
    color: #1f2937;
    font-size: 14px;
    text-align: right;
    word-break: break-word;
}

.related-insights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.related-item:hover {
    background: #f9fafb;
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.related-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.related-title a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.related-category, .related-season {
    color: #6b7280;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-action:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.quick-action i {
    color: var(--primary-color);
    width: 16px;
}

/* Preview Page Styles */
.preview-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.preview-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-hover);
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background: var(--primary-hover);
    color: white;
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.image-preview {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.unsupported-preview {
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.unsupported-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.unsupported-preview h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.unsupported-preview p {
    color: #6b7280;
    margin-bottom: 24px;
}

.preview-info {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.info-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filters-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .filters-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-actions {
        grid-column: 1;
        justify-content: stretch;
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-clear {
        text-align: center;
        padding: 8px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .insight-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .filters-toggle {
        display: flex;
    }
    
    .filters-content {
        display: none;
    }
    
    .filters-content.show {
        display: block;
    }
    
    .filter-input, .filter-select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
    
    .insight-title {
        font-size: 24px;
    }
    
    .insight-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .insight-actions {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .preview-header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .preview-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .preview-title {
        font-size: 16px;
    }
    
    .preview-container {
        padding: 16px;
    }
    
    .preview-info {
        padding: 12px 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .insight-details-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .insight-meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .file-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .file-actions {
        flex-direction: column;
    }
}

/* Notification Dropdown Styles */
.notification-container {
    position: relative;
}

.notification-dropdown {
    animation: fadeInDown 0.3s ease-out;
    left: 0;
    right: auto;
    transform: translateX(0);
}

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

.notification-item {
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-unread-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: auto;
    margin-top: 8px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.notification-content p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-content small {
    font-size: 11px;
    color: #9ca3af;
}

/* Badge positioning fix */
.position-relative .badge {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 16px;
}

/* Notification dropdown responsive positioning - handled by JavaScript */

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-dark { color: #222 !important; }
.text-muted { color: var(--muted-text) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-flex-column { display: flex; flex-direction: column !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 0.75rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.p-0 { padding: 0 !important; }

/* Typography Utilities */
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.font-monospace { font-family: var(--font-family-mono) !important; }

/* Card Utilities */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--card-border); background-color: var(--gray-50); border-radius: var(--card-radius) var(--card-radius) 0 0; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--card-border); background-color: var(--gray-50); border-radius: 0 0 var(--card-radius) var(--card-radius); }
.card-title { margin: 0; font-weight: 600; color: var(--sidebar-text); }

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }
.border-success { border-color: var(--success-color) !important; }
.border-warning { border-color: var(--warning-color) !important; }
.border-danger { border-color: var(--danger-color) !important; }
.border-info { border-color: var(--info-color) !important; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .container-fluid {
        padding: var(--spacing-sm);
    }
    
    .card-custom-header,
    .card-custom-body,
    .card-custom-footer {
        padding: var(--spacing-md);
    }
    
    .btn-custom {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Sidebar Styles */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--sidebar-border);
    min-height: 100vh;
    padding-top: 2rem;
}

.sidebar .nav-link {
    border-radius: var(--btn-radius);
    color: var(--sidebar-text);
    margin-bottom: 4px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: var(--sidebar-active-bg);
    color: var(--primary-color) !important;
}

.sidebar .nav-section h6 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Folder Icons */
.folder-icon {
    color: var(--folder-yellow);
    font-size: 2.2rem;
 
        
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.btn {
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-family: 'Fira Sans', sans-serif;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--btn-hover-bg);
    color: var(--btn-text);
}

.btn-outline-primary {
    border: 2px solid var(--btn-outline);
    color: var(--primary-color);
    background: #fff;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--btn-outline-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert-custom {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow);
    font-family: 'Fira Sans', sans-serif;
}

.alert-custom-success {
    background: var(--success-color);
    color: white;
}

.alert-custom-danger {
    background: var(--danger-color);
    color: white;
}

.alert-custom-warning {
    background: var(--warning-color);
    color: white;
}

.alert-custom-info {
    background: var(--info-color);
    color: white;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Table Styles */
.table {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--table-border);
    font-weight: 600;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.table td, .table th {
    border: none;
    vertical-align: middle;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: var(--input-radius);
    border: 1px solid var(--card-border);
    font-family: 'Fira Sans', sans-serif;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(255, 144, 0, 0.15);
}

/* Modal Styles */
.modal-content {
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* Badge Styles */
.badge {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.35em 0.7em;
}

.badge-blue { background: var(--badge-blue); color: #fff; }
.badge-green { background: var(--badge-green); color: #fff; }
.badge-red { background: var(--badge-red); color: #fff; }
.badge-gray { background: var(--badge-gray); color: #222; }

/* Dropdown Styles */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow);
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: var(--sidebar-active-bg);
    color: var(--primary-color);
}

/* Utility Classes */
.text-muted { color: var(--muted-text) !important; }
.bg-light { background: #FAFAFB !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F6FA; }
::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FF9000; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Storage Bar */
.storage-bar {
    background: var(--storage-bar-bg);
    border-radius: 8px;
    height: 8px;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.storage-bar-fill {
    background: var(--storage-bar-fill);
    height: 100%;
    border-radius: 8px;
}

/* New Left Navigation Styles */
.leftnav-new {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: 100vh;
    padding: 24px 16px;
    background: var(--sidebar-bg);
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    position: sticky;
    left: 0;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.leftnav-new .leftnav-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Custom scrollbar for leftnav */
.leftnav-new .leftnav-content::-webkit-scrollbar {
    width: 4px;
}

.leftnav-new .leftnav-content::-webkit-scrollbar-track {
    background: transparent;
}

.leftnav-new .leftnav-content::-webkit-scrollbar-thumb {
    background: rgba(52, 58, 64, 0.2);
    border-radius: 2px;
}

.leftnav-new .leftnav-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 58, 64, 0.4);
}

.leftnav-new .logo-container {
    align-self: stretch;
    height: 56.93px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leftnav-new .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.leftnav-new .user-profile {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.leftnav-new .user-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.leftnav-new .user-avatar {
    width: 24px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.leftnav-new .user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.leftnav-new .user-name {
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
}

.leftnav-new .user-email {
    color: var(--sidebar-text);
    font-size: 10px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
}

.leftnav-new .dropdown-toggle {
    width: 16px;
    height: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leftnav-new .nav-menu {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.leftnav-new .nav-item {
    align-self: stretch;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.leftnav-new .nav-item.active {
    background: var(--sidebar-active-bg);
}

.leftnav-new .nav-item:hover {
    background: rgba(52, 58, 64, 0.05);
}

.leftnav-new .nav-item.active .nav-text {
    color: #FCFCFD;
}

.leftnav-new .nav-item:not(.active) .nav-text {
    color: var(--sidebar-text);
}

.leftnav-new .nav-icon {
    width: 16px;
    height: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leftnav-new .nav-text {
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
}

.leftnav-new .folders-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.leftnav-new .folders-title {
    opacity: 0.75;
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.leftnav-new .folder-item {
    align-self: stretch;
    padding: 8px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.leftnav-new .folder-item:hover {
    background: rgba(52, 58, 64, 0.05);
    border-radius: 4px;
}

.leftnav-new .folder-icon {
    width: 16px;
    height: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 28px;
    justify-content: center;
}



.leftnav-new .folder-icon::before {
    content: '';
    position: absolute;
    width: 13.33px;
    height: 4px;
    top: 2.67px;
    background: #FFA000;
}

.leftnav-new .folder-icon::after {
    content: '';
    position: absolute;
    width: 13.33px;
    height: 9.33px;
    top: 4px;
    background: #FFCA28;
}

.leftnav-new .folder-text {
    flex: 1 1 0;
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
}

.leftnav-new .storage-card {
    align-self: stretch;
    padding: 8px;
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: auto;
}

.leftnav-new .storage-items {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.3s ease;
}

.leftnav-new .storage-item {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leftnav-new .storage-item-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.leftnav-new .storage-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.leftnav-new .storage-color.photos {
    background: var(--storage-photos);
}

.leftnav-new .storage-color.documents {
    background: var(--storage-documents);
}

.leftnav-new .storage-color.sheets {
    background: var(--storage-sheets);
}

.leftnav-new .storage-color.free {
    background: var(--storage-free);
}

.leftnav-new .storage-label {
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

.leftnav-new .storage-amount {
    opacity: 0.75;
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
}

.leftnav-new .storage-progress {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.3s ease;
}

.leftnav-new .storage-text {
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.leftnav-new .storage-used {
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

.leftnav-new .storage-total {
    opacity: 0.50;
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

.leftnav-new .progress-bar {
    width: 168px;
    height: 8px;
    background: var(--storage-bar-bg);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leftnav-new .progress-fill {
    height: 8px;
    background: var(--storage-bar-fill);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.leftnav-new .upgrade-button {
    align-self: stretch;
    padding: 8px 12px;
    background: var(--storage-bar-fill);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leftnav-new .upgrade-button:hover {
    opacity: 0.9;
}

.leftnav-new .upgrade-icon {
    width: 16px;
    height: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.leftnav-new .upgrade-text {
    color: #FCFCFD;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Main content adjustment */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* Mobile offcanvas styles */
.leftnav-offcanvas {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.leftnav-offcanvas.show {
    left: 0;
}

.leftnav-offcanvas .leftnav-content {
    padding: 24px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leftnav-offcanvas .storage-card {
    margin-top: auto;
}

/* Offcanvas backdrop */
.leftnav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.leftnav-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    body {
        display: block;
        height: auto;
        overflow: auto;
    }
    
    .leftnav-new {
        display: none;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .leftnav-toggle {
        display: block;
    }
}

@media (min-width: 992px) {
    .leftnav-offcanvas,
    .leftnav-backdrop {
        display: none;
    }
    
    .leftnav-toggle {
        display: none;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    
    
    .leftnav-offcanvas .leftnav-new .leftnav-content {
        padding: 16px;
    }
    
    .leftnav-offcanvas .leftnav-new .logo-container {
        height: 40px;
        margin-bottom: 16px;
    }
    
    .leftnav-offcanvas .leftnav-new .user-profile {
        margin-bottom: 16px;
    }
    
    .leftnav-offcanvas .leftnav-new .nav-menu {
        margin-bottom: 16px;
    }
    
    .leftnav-offcanvas .leftnav-new .folders-section {
        margin-bottom: 16px;
    }
    
    .leftnav-offcanvas .leftnav-new .storage-card {
        margin-top: auto;
        padding: 12px;
    }
    
    /* Ensure proper spacing in mobile */
    .leftnav-offcanvas .leftnav-new .nav-item {
        padding: 12px 8px;
        margin-bottom: 4px;
    }
    
    .leftnav-offcanvas .leftnav-new .folder-item {
        padding: 8px 0;
        margin-bottom: 2px;
    }
    
    /* Improve mobile button styles */
    .leftnav-offcanvas .leftnav-new .admin-menu-btn,
    .leftnav-offcanvas .leftnav-new .account-manager-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .leftnav-offcanvas .leftnav-new .admin-menu-btn-content,
    .leftnav-offcanvas .leftnav-new .account-manager-btn-content {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .leftnav-offcanvas .leftnav-new .admin-menu-btn-icon,
    .leftnav-offcanvas .leftnav-new .account-manager-btn-icon {
        font-size: 14px;
    }
    
    .leftnav-offcanvas .leftnav-new .admin-menu-btn-text,
    .leftnav-offcanvas .leftnav-new .account-manager-btn-text {
        display: none;
    }
    
    @media (min-width: 576px) {
        .leftnav-offcanvas .leftnav-new .admin-menu-btn-text,
        .leftnav-offcanvas .leftnav-new .account-manager-btn-text {
            display: inline;
        }
    }
}

/* Ensure proper backdrop behavior */
.leftnav-backdrop.show {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(2px);
}

/* Improve mobile navigation toggle button */
.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Ensure proper z-index for mobile navigation */
.leftnav-offcanvas {
    z-index: 1050;
}

.leftnav-backdrop {
    z-index: 1040;
}

/* Improve mobile navigation content scrolling */
.leftnav-offcanvas .leftnav-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure proper mobile navigation item spacing */
.leftnav-offcanvas .nav-item,
.leftnav-offcanvas .folder-item {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.leftnav-offcanvas .nav-item:hover,
.leftnav-offcanvas .folder-item:hover {
    background-color: rgba(52, 58, 64, 0.08);
    transform: translateX(2px);
}

/* Ensure body and html take full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex !important;
    width: 100% !important;
}

/* Main content styles are defined above */

.main-content .navbar {
    flex-shrink: 0;
}

.main-content .p-4 {
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

/* Search and Actions Bar */
.search-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    outline: 1px solid rgba(52, 58, 64, 0.25);
    background: white;
}

.search-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.search-dot {
    width: 2.67px;
    height: 2.67px;
    position: absolute;
    left: 11.33px;
    top: 11.33px;
    outline: 1px solid rgba(52, 58, 64, 0.40);
}

.search-box {
    width: 10.67px;
    height: 10.67px;
    position: absolute;
    left: 2px;
    top: 2px;
    outline: 1px solid rgba(52, 58, 64, 0.40);
}

.search-input {
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    color: rgba(52, 58, 64, 0.40);
    background: transparent;
    width: 200px;
}

.search-input::placeholder {
    color: rgba(52, 58, 64, 0.40);
}

.search-button {
    padding: 12px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #FCFCFD;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background: var(--primary-hover);
}

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

.action-button {
    padding: 12px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--sidebar-text);
}

.action-button:hover {
    background: #e9ecef;
}

.invite-button {
    background: var(--primary-color);
    color: #FCFCFD;
    font-weight: 500;
    padding: 12px 16px;
}

.invite-button:hover {
    background: var(--primary-hover);
}

.filter-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.filter-icon::before {
    content: '';
    position: absolute;
    width: 15.83px;
    height: 13.75px;
    left: 2.08px;
    top: 1.67px;
    outline: 1.25px var(--sidebar-text) solid;
}

.filter-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 0.83px;
    left: 7.50px;
    top: 17.50px;
    outline: 1.25px var(--sidebar-text) solid;
}

.invite-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.invite-icon::before {
    content: '';
    position: absolute;
    width: 10.67px;
    height: 10.67px;
    left: 2.67px;
    top: 2.67px;
    outline: 1px #FCFCFD solid;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-title {
    color: var(--sidebar-text);
    font-size: 24px;
    font-family: var(--font-family);
    font-weight: 700;
    margin: 0;
}

.welcome-subtitle {
    color: var(--sidebar-text);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
    opacity: 0.50;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.create-folder-button, .upload-file-button {
    padding: 12px 16px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--sidebar-text);
}

.create-folder-button:hover, .upload-file-button:hover {
    background: #e9ecef;
}

.folder-icon-small {
    width: 16px;
    height: 16px;
    position: relative;
}

.upload-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.upload-icon::before {
    content: '';
    position: absolute;
    width: 3.33px;
    height: 6.67px;
    left: 6.33px;
    top: 3px;
    outline: 1px var(--sidebar-text) solid;
}

.upload-icon::after {
    content: '';
    position: absolute;
    width: 10.67px;
    height: 2px;
    left: 2.67px;
    top: 11px;
    outline: 1px var(--sidebar-text) solid;
}

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

.section-title {
    color: var(--sidebar-text);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
    margin: 0;
}

.view-all-link {
    color: #0D6CF2;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

/* Folders Grid */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
    gap: 16px;
    width: 100%;
}

.folder-card {
    width: 242px;
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 12px;
    gap: 4px;
}

.folder-card-preview {
    height: 112px;
    background: #F3F5F6;
    position: relative;
    overflow: hidden;
}

.folder-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New folder card design */
.folder-card-new {
    width: 100%;
    height: 100%;
    padding: 12px;
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

.folder-card-new-header {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.folder-icon-container {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon-container::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 6px;
    top: 2px;
    left: 2px !important;
    background: #FFA000;
    border-radius: 2px 2px 0 0;
    z-index: 2;
}

.folder-icon-container::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 22px;
    top: 6px;
    left: 2px;
    background: #FFCA28;
    border-radius: 0 2px 2px 2px;
    z-index: 1;
}

.folder-icon-top {
    width: 33.33px;
    height: 10px;
    left: 3.33px;
    top: 6.67px;
    position: absolute;
    background: #FFA000;
}

.folder-icon-bottom {
    width: 33.33px;
    height: 23.33px;
    left: 3.33px;
    top: 10px;
    position: absolute;
    background: #FFCA28;
}

.folder-options-new {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.option-dot-new {
    width: 3px;
    height: 3px;
    left: 10.50px;
    position: absolute;
    outline: 1.50px #343A40 solid;
    outline-offset: -0.75px;
    border-radius: 50%;
}

.option-dot-new:nth-child(1) { top: 3px; }
.option-dot-new:nth-child(2) { top: 10.50px; }
.option-dot-new:nth-child(3) { top: 18px; }

.folder-name-new {
    align-self: stretch;
    color: #343A40;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

.folder-stats-new {
    opacity: 0.50;
    color: #343A40;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
    margin: 0;
}

.folder-card-info {
    padding: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-name-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.folder-icon-small {
    width: 16px;
    height: 16px;
    position: relative;
}

.folder-icon-small::before {
    content: '';
    position: absolute;
    width: 10.67px;
    height: 13.33px;
    left: 2.67px;
    top: 1.33px;
    outline: 1px var(--sidebar-text) solid;
}

.folder-name {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.folder-options {
    width: 16px;
    height: 16px;
    position: relative;
}

.option-dot {
    width: 2px;
    height: 2px;
    position: absolute;
    left: 7px;
    background: var(--sidebar-text);
    border-radius: 50%;
}

.option-dot:nth-child(1) { top: 2px; }
.option-dot:nth-child(2) { top: 7px; }
.option-dot:nth-child(3) { top: 12px; }

.folder-date {
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    opacity: 0.50;
    margin: 0;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 24px;
}

.section-header:first-child {
    margin-top: 0;
}

.section-title {
    color: var(--sidebar-text);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
    margin: 0;
}

/* Empty State Container */
.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
}

.file-card {
    flex: 1;
    min-width: 200px;
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-card-preview {
    height: 112px;
    background: #F3F5F6;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* File Preview Styles */
.file-preview-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* PDF Preview */
.file-preview-pdf {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.pdf-preview-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pdf-preview-icon {
    width: 16px;
    height: 16px;
    background: #E2574C;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview-icon img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.pdf-preview-text {
    font-size: 10px;
    font-weight: 600;
    color: #E2574C;
}

.pdf-preview-pages {
    display: flex;
    gap: 2px;
    flex: 1;
}

.pdf-page {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    position: relative;
}

.pdf-page::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
}

/* Google Drive-like PDF Preview Styles */
.file-preview-pdf {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.pdf-preview-pages {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-preview-pages canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-page {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pdf-page:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-page-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    z-index: 2;
}

.pdf-fallback-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #FF4444;
}

.pdf-fallback-icon {
    margin-bottom: 8px;
}

.pdf-fallback-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Enhanced PDF preview header */
.pdf-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.pdf-preview-icon {
    display: flex;
    align-items: center;
}

    .pdf-preview-text {
        font-size: 12px;
        font-weight: 500;
        color: #FF4444;
    }

    /* Google Drive-like Context Menu Styles */
    .context-menu {
        position: fixed;
        background: white;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 8px 0;
        min-width: 200px;
        z-index: 1000;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .context-menu-item {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background-color 0.2s ease;
    }

    .context-menu-item:hover {
        background-color: #f8f9fa;
    }

    .context-menu-item i {
        margin-right: 12px;
        width: 16px;
        height: 16px;
        color: #666;
    }

    .context-menu-item span {
        flex: 1;
    }

    .context-menu-divider {
        height: 1px;
        background-color: #e1e5e9;
        margin: 4px 0;
    }

    .context-menu-item.danger {
        color: #dc3545;
    }

    .context-menu-item.danger i {
        color: #dc3545;
    }

    .context-menu-item.danger:hover {
        background-color: #f8d7da;
    }

    /* Enhanced card interactions */
    .file-card, .folder-card-new {
        position: relative;
        transition: all 0.2s ease;
    }

    .file-card:hover, .folder-card-new:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .file-options, .folder-options-new {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .file-card:hover .file-options,
    .folder-card-new:hover .folder-options-new {
        opacity: 1;
    }

    .file-options:hover, .folder-options-new:hover {
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    /* Secondary name styling */
    .secondary-name {
        font-size: 11px !important;
        opacity: 0.7;
        font-weight: 400;
        margin-top: 2px;
    }

    .file-options, .folder-options-new {
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .file-options:active, .folder-options-new:active {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* User Management Styles */
    .avatar-sm {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        color: white;
    }

    .avatar-title {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        color: white;
    }

    .user-checkbox:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .status-toggle {
        cursor: pointer;
    }

    .status-toggle:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .bulk-actions-container {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .search-container {
        position: relative;
    }

    .search-container .form-control {
        padding-left: 2.5rem;
    }

    .search-container::before {
        content: '';
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 0.5;
    }

    /* Admin Navigation Styles */
    .offcanvas {
        border-right: 1px solid #E5E7EB;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .admin-nav-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 1rem;
    }

    .admin-nav-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .admin-nav-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }

    .admin-nav-text {
        flex: 1;
    }

    .admin-nav-title-text {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: white;
    }

    .admin-nav-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
        margin: 0;
    }

    .admin-nav-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .admin-nav-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .admin-nav-body {
        padding: 0;
        background: #FAFAFB;
    }

    .admin-nav-section {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid #F3F4F6;
    }

    .admin-nav-section:last-of-type {
        border-bottom: none;
    }

    .admin-nav-section-title {
        color: #6B7280;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
        padding-left: 0.5rem;
    }

    .admin-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-nav-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        background: transparent;
    }

    .admin-nav-item:hover {
        background: #F3F4F6;
        color: #1F2937;
        text-decoration: none;
        transform: translateX(4px);
    }

    .admin-nav-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .admin-nav-item.active:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        color: white;
    }

    .admin-nav-item-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(107, 114, 128, 0.1);
        transition: all 0.2s ease;
    }

    .admin-nav-item.active .admin-nav-item-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    .admin-nav-item-text {
        flex: 1;
        font-size: 0.875rem;
    }

    .admin-nav-item-badge {
        background: #EF4444;
        color: white;
        font-size: 0.625rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

    .admin-nav-footer {
        padding: 1.5rem 1rem;
        background: #F9FAFB;
        border-top: 1px solid #E5E7EB;
        margin-top: auto;
    }

    .admin-nav-user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .admin-nav-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        background: #E5E7EB;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-nav-user-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .admin-nav-user-initial {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1rem;
        color: #6B7280;
        background: #F3F4F6;
    }

    .admin-nav-user-details {
        flex: 1;
    }

    .admin-nav-user-name {
        font-weight: 600;
        color: #1F2937;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .admin-nav-user-role {
        font-size: 0.75rem;
        color: #6B7280;
        font-weight: 500;
    }

    /* Admin Menu Button */
    .admin-menu-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .admin-menu-btn:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .admin-menu-btn-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .admin-menu-btn-icon {
        filter: brightness(0) invert(1);
    }

    .admin-menu-btn-text {
        font-size: 0.875rem;
        font-weight: 500;
    }

    /* Responsive Admin Nav */
    @media (max-width: 768px) {
        .admin-nav-header {
            padding: 1rem;
        }

        .admin-nav-section {
            padding: 1rem;
        }

        .admin-nav-item {
            padding: 0.625rem 0.875rem;
        }

        .admin-nav-item-icon {
            width: 28px;
            height: 28px;
        }

        .admin-nav-item-text {
            font-size: 0.8125rem;
        }

        .admin-menu-btn {
            padding: 0.375rem 0.75rem;
        }

        .admin-menu-btn-text {
            display: none;
        }

        .admin-menu-btn-content {
            gap: 0;
        }
    }

/* Word Document Preview */
.file-preview-doc {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.doc-preview-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.doc-preview-icon {
    width: 16px;
    height: 16px;
    background: #26A6D1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-preview-icon img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.doc-preview-text {
    font-size: 10px;
    font-weight: 600;
    color: #26A6D1;
}

.doc-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-line {
    height: 8px;
    background: #e9ecef;
    border-radius: 2px;
    width: 100%;
}

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

/* PowerPoint Preview */
.file-preview-ppt {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.ppt-preview-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.ppt-preview-icon {
    width: 16px;
    height: 16px;
    background: #F4B459;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppt-preview-icon img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.ppt-preview-text {
    font-size: 10px;
    font-weight: 600;
    color: #F4B459;
}

.ppt-preview-slide {
    flex: 1;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ppt-slide-title {
    height: 12px;
    background: #495057;
    border-radius: 2px;
    width: 80%;
}

.ppt-slide-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ppt-bullet {
    height: 6px;
    background: #6c757d;
    border-radius: 1px;
    width: 70%;
}

/* Excel Preview */
.file-preview-xls {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.xls-preview-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.xls-preview-icon {
    width: 16px;
    height: 16px;
    background: #3DB39E;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xls-preview-icon img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.xls-preview-text {
    font-size: 10px;
    font-weight: 600;
    color: #3DB39E;
}

.xls-preview-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.xls-row {
    display: flex;
    gap: 1px;
    flex: 1;
}

.xls-cell {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1px;
}

/* Text File Preview */
.file-preview-txt {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.txt-preview-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.txt-preview-icon {
    width: 16px;
    height: 16px;
    background: #6B7280;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txt-preview-icon img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.txt-preview-text {
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
}

.txt-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.txt-line {
    height: 8px;
    background: #e9ecef;
    border-radius: 2px;
    width: 100%;
}

.txt-line.short {
    width: 40%;
}

.file-preview {
    height: 112px;
    background: #F3F5F6;
    position: relative;
    overflow: hidden;
}

.file-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    background: #F3F5F6;
    justify-content: center;
    align-items: center;
}

.file-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name-section {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.file-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.file-icon::before {
    content: '';
    position: absolute;
    width: 10.67px;
    height: 13.33px;
    left: 2.67px;
    top: 1.33px;
    outline: 1px var(--sidebar-text) solid;
}

.file-name {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.file-date {
    color: var(--sidebar-text);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    opacity: 0.50;
    margin: 0;
}

/* My Files Section */
.my-files-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.files-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 12px 16px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--sidebar-text);
}

.filter-tab.active {
    outline: 0.80px var(--primary-color) solid;
    background: #F8F9FA;
}

.files-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Files Table */
.files-table-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.files-table {
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    background: var(--storage-bar-fill);
    color: #FCFCFD;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.table-row {
    display: flex;
    border-bottom: 1px solid rgba(52, 58, 64, 0.08);
    background: #FCFCFD;
}

.table-row:last-child {
    border-bottom: none;
}

.checkbox-cell {
    width: 42px;
    padding: 12px;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(52, 58, 64, 0.08);
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(52, 58, 64, 0.75);
    border-radius: 50%;
}

.name-cell, .folder-cell, .shared-by-cell, .file-size-cell, .modified-cell {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(52, 58, 64, 0.08);
    color: rgba(52, 58, 64, 0.75);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.actions-cell {
    width: 28px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(52, 58, 64, 0.08);
}

.file-icon-small {
    width: 16px;
    height: 16px;
    position: relative;
    opacity: 0.75;
}

.file-icon-small::before {
    content: '';
    position: absolute;
    width: 10.67px;
    height: 13.33px;
    left: 2.67px;
    top: 1.33px;
    outline: 1px var(--sidebar-text) solid;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-info {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-info span {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.pagination-separator {
    opacity: 0.80;
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.pagination-button {
    padding: 2px;
    background: #F8F9FA;
    border: none;
    border-radius: 1px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
}

.arrow-left, .arrow-right {
    width: 12px;
    height: 12px;
    position: relative;
}

.arrow-left::before {
    content: '';
    position: absolute;
    width: 3.70px;
    height: 6px;
    left: 4px;
    top: 3px;
    background: black;
    transform: rotate(45deg);
}

.arrow-right::before {
    content: '';
    position: absolute;
    width: 3.70px;
    height: 6px;
    left: 4.29px;
    top: 3px;
    background: black;
    transform: rotate(-45deg);
}

/* Directory View Styles */
.directory-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.directory-search-section {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 608px;
}

.directory-actions-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

.directory-action-button {
    width: 144px;
    height: 44px;
    padding: 12px 16px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--sidebar-text);
}

.directory-action-button:hover {
    background: #e9ecef;
}

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

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    opacity: 0.75;
    color: var(--sidebar-text);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
}

.breadcrumb-separator {
    width: 24px;
    height: 24px;
    position: relative;
}

.breadcrumb-separator::before {
    content: '';
    position: absolute;
    width: 7.41px;
    height: 12px;
    left: 8.59px;
    top: 6px;
    background: var(--sidebar-text);
}

.breadcrumb-current {
    color: var(--sidebar-text);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
}

.breadcrumb-dropdown {
    width: 16px;
    height: 16px;
    position: relative;
}

.breadcrumb-dropdown::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 4.95px;
    left: 4px;
    top: 5.72px;
    background: var(--sidebar-text);
}

.filter-dropdowns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-dropdown {
    width: 120px;
    padding: 8px 12px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    outline: 1px solid rgba(52, 58, 64, 0.50);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-dropdown:hover {
    outline-color: var(--primary-color);
}

.filter-dropdown-text {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.filter-dropdown-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.filter-dropdown-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 4.95px;
    left: 4px;
    top: 5.72px;
    background: var(--sidebar-text);
}

/* Clickable Elements */
.clickable {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clickable:active {
    transform: translateY(0);
}

/* Upload Modal Styles */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.upload-modal-content {
    width: 100%;
    height: 100%;
    padding: 24px;
    background: white;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: relative;
    max-width: 800px;
    max-height: 600px;
}

.upload-modal-header {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.upload-modal-title-section {
    width: 319px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.upload-modal-title {
    align-self: stretch;
    color: black;
    font-size: 20px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.upload-modal-subtitle {
    align-self: stretch;
    opacity: 0.75;
    color: black;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

.upload-modal-close {
    padding: 4px;
    background: #F8F9FA;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 4px;
}

.upload-modal-close:hover {
    background: #e9ecef;
}

.upload-modal-body {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    min-height: 400px;
}

.upload-area {
    width: 383px;
    align-self: stretch;
    padding: 24px;
    border-radius: 8px;
    outline: 1px #0D6CF2 solid;
    outline-offset: -0.50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    background: rgba(13, 108, 242, 0.05);
}

.upload-area.dragover {
    background: rgba(13, 108, 242, 0.1);
    outline-color: #0056b3;
}

.upload-icon-large {
    width: 96px;
    height: 96px;
    position: relative;
    opacity: 0.35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-text {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.upload-click-text {
    color: #0D6CF2;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    text-decoration: underline;
    word-wrap: break-word;
}

.upload-drag-text {
    color: #343A40;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

.upload-size-limit {
    align-self: stretch;
    opacity: 0.75;
    text-align: center;
    color: #343A40;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

.upload-progress-section {
    width: 345px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.upload-progress-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-progress-item {
    align-self: stretch;
    padding: 8px;
    background: white;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 32px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.file-icon-pdf {
    background: #E2574C;
}

.file-icon-doc {
    background: #26A6D1;
}

.file-icon-ppt {
    background: #F4B459;
}

.file-icon-xls {
    background: #3DB39E;
}

.file-icon-txt {
    background: #6B7280;
}

.file-icon-img {
    background: #10B981;
}

.file-icon-ai {
    background: #FF6B35;
}

.file-icon-psd {
    background: #0066CC;
}

.file-icon-eps {
    background: #FF6600;
}

.file-icon-dwg {
    background: #2E8B57;
}

.file-icon-dxf {
    background: #4682B4;
}

.file-icon-cdr {
    background: #FF4500;
}

.file-icon-3d {
    background: #8A2BE2;
}

.file-icon-overlay {
    width: 8.97px;
    height: 8.98px;
    left: 21px;
    top: 0.02px;
    position: absolute;
}

.file-icon-pdf .file-icon-overlay {
    background: #B53629;
}

.file-icon-doc .file-icon-overlay {
    background: #1E7EA0;
}

.file-icon-ppt .file-icon-overlay {
    background: #D07C40;
}

.file-icon-xls .file-icon-overlay {
    background: #2F8A78;
}

.file-icon-txt .file-icon-overlay {
    background: #4B5563;
}

.file-icon-img .file-icon-overlay {
    background: #059669;
}

.file-icon-ai .file-icon-overlay {
    background: #E55A2B;
}

.file-icon-psd .file-icon-overlay {
    background: #0055B3;
}

.file-icon-eps .file-icon-overlay {
    background: #E55A00;
}

.file-icon-dwg .file-icon-overlay {
    background: #267A4E;
}

.file-icon-dxf .file-icon-overlay {
    background: #3D71A3;
}

.file-icon-cdr .file-icon-overlay {
    background: #E53D00;
}

.file-icon-3d .file-icon-overlay {
    background: #7A1BD1;
}

.file-icon-content {
    position: absolute;
    background: white;
}

.file-icon-pdf .file-icon-content {
    width: 13.99px;
    height: 5.99px;
    left: 9.01px;
    top: 14.01px;
}

.file-icon-doc .file-icon-content {
    width: 11.88px;
    height: 7.36px;
    left: 9.97px;
    top: 13.78px;
}

.file-icon-ppt .file-icon-content {
    width: 9.41px;
    height: 7.02px;
    left: 11.01px;
    top: 14px;
}

.file-icon-xls .file-icon-content {
    width: 16px;
    height: 13px;
    left: 8px;
    top: 13px;
    background: #8BD1C5;
}

.file-icon-txt .file-icon-content {
    width: 12px;
    height: 8px;
    left: 10px;
    top: 12px;
}

.file-icon-img .file-icon-content {
    width: 14px;
    height: 10px;
    left: 9px;
    top: 11px;
    background: #34D399;
}

.file-icon-ai .file-icon-content {
    width: 12px;
    height: 12px;
    left: 10px;
    top: 10px;
    background: #FF8C69;
}

.file-icon-psd .file-icon-content {
    width: 10px;
    height: 14px;
    left: 11px;
    top: 9px;
    background: #4D9DE0;
}

.file-icon-eps .file-icon-content {
    width: 14px;
    height: 8px;
    left: 9px;
    top: 12px;
    background: #FF8C4D;
}

.file-icon-dwg .file-icon-content {
    width: 16px;
    height: 12px;
    left: 8px;
    top: 10px;
    background: #4CAF50;
}

.file-icon-dxf .file-icon-content {
    width: 14px;
    height: 10px;
    left: 9px;
    top: 11px;
    background: #6BA5D6;
}

.file-icon-cdr .file-icon-content {
    width: 12px;
    height: 14px;
    left: 10px;
    top: 9px;
    background: #FF6B4D;
}

.file-icon-3d .file-icon-content {
    width: 14px;
    height: 14px;
    left: 9px;
    top: 9px;
    background: #A855F7;
}

/* File Type Icons for Cards */
.file-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 24px;
}

/* File Icon for Upload Progress */
.file-icon {
    width: 32px;
    height: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-type-icon-large {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 48px;
}

.file-type-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    flex-shrink: 0;
}

/* File Type Icon Colors */
.file-type-icon.file-icon-pdf,
.file-type-icon-small.file-icon-pdf,
.file-type-icon-large.file-icon-pdf {
    background: #E2574C;
}

.file-type-icon.file-icon-doc,
.file-type-icon-small.file-icon-doc,
.file-type-icon-large.file-icon-doc,
.file-type-icon.file-icon-docx,
.file-type-icon-small.file-icon-docx,
.file-type-icon-large.file-icon-docx {
    background: #26A6D1;
}

.file-type-icon.file-icon-ppt,
.file-type-icon-small.file-icon-ppt,
.file-type-icon-large.file-icon-ppt,
.file-type-icon.file-icon-pptx,
.file-type-icon-small.file-icon-pptx,
.file-type-icon-large.file-icon-pptx {
    background: #F4B459;
}

.file-type-icon.file-icon-xls,
.file-type-icon-small.file-icon-xls,
.file-type-icon-large.file-icon-xls,
.file-type-icon.file-icon-xlsx,
.file-type-icon-small.file-icon-xlsx,
.file-type-icon-large.file-icon-xlsx {
    background: #3DB39E;
}

.file-type-icon.file-icon-txt,
.file-type-icon-small.file-icon-txt,
.file-type-icon-large.file-icon-txt {
    background: #6B7280;
}

.file-type-icon.file-icon-jpg,
.file-type-icon-small.file-icon-jpg,
.file-type-icon-large.file-icon-jpg,
.file-type-icon.file-icon-jpeg,
.file-type-icon-small.file-icon-jpeg,
.file-type-icon-large.file-icon-jpeg,
.file-type-icon.file-icon-png,
.file-type-icon-small.file-icon-png,
.file-type-icon-large.file-icon-png,
.file-type-icon.file-icon-gif,
.file-type-icon-small.file-icon-gif,
.file-type-icon-large.file-icon-gif,
.file-type-icon.file-icon-svg,
.file-type-icon-small.file-icon-svg,
.file-type-icon-large.file-icon-svg {
    background: #10B981;
}

.file-type-icon.file-icon-ai,
.file-type-icon-small.file-icon-ai,
.file-type-icon-large.file-icon-ai {
    background: #FF6B35;
}

.file-type-icon.file-icon-psd,
.file-type-icon-small.file-icon-psd,
.file-type-icon-large.file-icon-psd {
    background: #0066CC;
}

.file-type-icon.file-icon-eps,
.file-type-icon-small.file-icon-eps,
.file-type-icon-large.file-icon-eps {
    background: #FF6600;
}

.file-type-icon.file-icon-dwg,
.file-type-icon-small.file-icon-dwg,
.file-type-icon-large.file-icon-dwg {
    background: #2E8B57;
}

.file-type-icon.file-icon-dxf,
.file-type-icon-small.file-icon-dxf,
.file-type-icon-large.file-icon-dxf {
    background: #4682B4;
}

.file-type-icon.file-icon-cdr,
.file-type-icon-small.file-icon-cdr,
.file-type-icon-large.file-icon-cdr {
    background: #FF4500;
}

.file-type-icon.file-icon-3d,
.file-type-icon-small.file-icon-3d,
.file-type-icon-large.file-icon-3d,
.file-type-icon.file-icon-skp,
.file-type-icon-small.file-icon-skp,
.file-type-icon-large.file-icon-skp,
.file-type-icon.file-icon-3ds,
.file-type-icon-small.file-icon-3ds,
.file-type-icon-large.file-icon-3ds,
.file-type-icon.file-icon-obj,
.file-type-icon-small.file-icon-obj,
.file-type-icon-large.file-icon-obj,
.file-type-icon.file-icon-fbx,
.file-type-icon-small.file-icon-fbx,
.file-type-icon-large.file-icon-fbx,
.file-type-icon.file-icon-stl,
.file-type-icon-small.file-icon-stl,
.file-type-icon-large.file-icon-stl,
.file-type-icon.file-icon-blend,
.file-type-icon-small.file-icon-blend,
.file-type-icon-large.file-icon-blend,
.file-type-icon.file-icon-ma,
.file-type-icon-small.file-icon-ma,
.file-type-icon-large.file-icon-ma,
.file-type-icon.file-icon-mb,
.file-type-icon-small.file-icon-mb,
.file-type-icon-large.file-icon-mb {
    background: #8A2BE2;
}

/* File Preview Styles */
.file-preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.file-preview-content {
    display: flex;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

.file-preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-preview-area {
    flex: 1;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.pdf-preview {
    width: 100%;
    height: 100%;
}

.pdf-preview iframe {
    border: none;
    border-radius: 8px;
}

.text-preview {
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
}

.text-preview pre {
    font-family: var(--font-family-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sidebar-text);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.file-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px;
    text-align: center;
}

.file-preview-placeholder h3 {
    color: var(--sidebar-text);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.file-preview-placeholder p {
    color: var(--muted-text);
    font-size: 14px;
    margin: 0;
}

.download-button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.download-button:hover {
    background: var(--primary-hover);
}

.file-details-sidebar {
    width: 320px;
    /* display: flex; */
    /* flex-direction: column; */
    gap: 16px;
}

.file-info-card,
.comments-section,
.activity-section {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.file-info-header,
.comments-header,
.activity-header {
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
    background: var(--gray-50);
}

.file-info-header h3,
.comments-header h3,
.activity-header h3 {
    color: var(--sidebar-text);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-comment-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.file-info-content {
    padding: 16px;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

.file-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 400;
}

.comments-list {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
}

.comment-item:last-child {
    border-bottom: none;
}

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

.comment-author {
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
}

.comment-date {
    color: var(--muted-text);
    font-size: 12px;
}

.comment-content {
    color: var(--sidebar-text);
    font-size: 14px;
    line-height: 1.5;
}

.no-comments,
.no-activity {
    padding: 24px;
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
}

.comment-form {
    padding: 16px;
    border-top: 1px solid var(--card-border);
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(255 144 0 / 0.1);
}

.comment-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 8px 16px;
    background: var(--gray-50);
    color: var(--sidebar-text);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background: var(--gray-100);
}

.submit-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.activity-list {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--sidebar-text);
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-date {
    color: var(--muted-text);
    font-size: 12px;
}

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

.file-header {
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.file-details {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.file-name {
    align-self: stretch;
    color: #343A40;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* File name in upload progress items */
.upload-progress-item .file-name {
    max-width: 180px;
}

.file-size {
    opacity: 0.50;
    color: #343A40;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

.file-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file-remove:hover {
    background: rgba(52, 58, 64, 0.1);
}

.progress-bar-container {
    align-self: stretch;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.progress-bar-bg {
    width: 251px;
    height: 8px;
    background: #CED4DA;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 8px;
    background: #0D6CF2;
    border-radius: 4px;
    position: absolute;
    top: 0;
    transition: background-color 0.3s ease;
    left: 0;
    transition: width 0.3s ease;
}

.progress-percentage {
    opacity: 0.50;
    color: #343A40;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease;
}

/* Upload success state */
.upload-progress-item.upload-success {
    border-left: 3px solid #10B981;
}

.upload-progress-item.upload-success .progress-bar-fill {
    background: #10B981 !important;
}

.upload-progress-item.upload-success .progress-percentage {
    color: #10B981 !important;
    font-weight: bold;
    opacity: 1;
}

/* Upload error state */
.upload-progress-item.upload-error {
    border-left: 3px solid #EF4444;
}

.upload-progress-item.upload-error .progress-bar-fill {
    background: #EF4444 !important;
}

.upload-progress-item.upload-error .progress-percentage {
    color: #EF4444 !important;
    opacity: 1;
}

.upload-modal-footer {
    width: 320px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.upload-modal-buttons {
    width: 100%;
    display: flex;
    gap: 8px;
}

.upload-finish-btn {
    flex: 1 1 0;
    height: 44px;
    padding: 12px 16px;
    background: #F2800D;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-finish-btn:hover {
    background: #e57c00;
}

.upload-finish-btn span {
    color: #FCFCFD;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.upload-cancel-btn {
    flex: 1 1 0;
    height: 44px;
    padding: 12px 16px;
    background: #F8F9FA;
    border: 1px solid rgba(52, 58, 64, 0.16);
    border-radius: 8px;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-cancel-btn:hover {
    background: #e9ecef;
}

.upload-cancel-btn span {
    color: #343A40;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

/* Empty States */
.empty-state {
    opacity: 0.6;
}

/* Folder Creation Modal Styles */
.folder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.folder-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.folder-modal-content {
    width: 100%;
    padding: 12px;
    background: #F8F9FA;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    border-radius: 8px;
    outline: 1px rgba(52, 58, 64, 0.12) solid;
    outline-offset: -1px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    display: inline-flex;
    position: relative;
    max-width: 500px;
    max-height: 600px;
    overflow-y: auto;
}

.folder-modal-title {
    align-self: stretch;
    color: rgba(52, 58, 64, 0.75);
    font-size: 18px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.folder-name-input {
    align-self: stretch;
    height: 44px;
    padding: 12px;
    border-radius: 8px;
    outline: 1px rgba(52, 58, 64, 0.25) solid;
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: inline-flex;
    background: white;
    border: none;
    color: rgba(52, 58, 64, 0.40);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

.folder-name-input:focus {
    outline-color: var(--primary-color);
    color: var(--sidebar-text);
}

.folder-name-input::placeholder {
    color: rgba(52, 58, 64, 0.40);
}

.folder-modal-buttons {
    width: 320px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: inline-flex;
}

.folder-create-btn {
    flex: 1 1 0;
    height: 44px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: #F2800D;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.folder-create-btn:hover {
    background: #e67300;
}

.folder-create-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.folder-create-btn span {
    color: #FCFCFD;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.folder-cancel-btn {
    flex: 1 1 0;
    height: 44px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: #F8F9FA;
    box-shadow: 0px 0px 1px 1px rgba(52, 58, 64, 0.04);
    overflow: hidden;
    border-radius: 8px;
    outline: 1px rgba(52, 58, 64, 0.16) solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: flex;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.folder-cancel-btn:hover {
    background: #e9ecef;
}

.folder-cancel-btn span {
    color: #343A40;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
}

/* Folder Modal Form Styles */
.folder-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.folder-modal .form-label {
    color: rgba(52, 58, 64, 0.75);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.folder-modal .form-control {
    height: 44px;
    padding: 12px;
    border-radius: 8px;
    outline: 1px rgba(52, 58, 64, 0.25) solid;
    outline-offset: -1px;
    background: white;
    border: none;
    color: rgba(52, 58, 64, 0.40);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    word-wrap: break-word;
    transition: all 0.2s ease;
}

.folder-modal .form-control:focus {
    outline-color: var(--primary-color);
    color: var(--sidebar-text);
}

.folder-modal .form-control::placeholder {
    color: rgba(52, 58, 64, 0.40);
}

.folder-modal .alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    margin: 0;
}

.folder-modal .alert-info {
    background: rgba(13, 108, 242, 0.1);
    color: #0D6CF2;
    border: 1px solid rgba(13, 108, 242, 0.2);
}

.folder-modal .alert i {
    margin-right: 8px;
}

/* Login Page Styles */
/* Override global flex layout for login page */
body.login-page {
    display: block !important;
    height: auto !important;
    overflow-y: auto !important;
}

html body.login-page {
    height: auto !important;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.login-title {
    color: var(--sidebar-text);
    font-size: 28px;
    font-family: var(--font-family);
    font-weight: 600;
    margin: 0;
    word-wrap: break-word;
}

.login-subtitle {
    color: var(--muted-text);
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    margin: 0;
    word-wrap: break-word;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    word-wrap: break-word;
}

.form-input {
    height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(52, 58, 64, 0.25);
    background: white;
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 128, 13, 0.1);
}

.form-input::placeholder {
    color: rgba(52, 58, 64, 0.40);
}

.form-input-error {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: 400;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(52, 58, 64, 0.25);
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.checkbox-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-text {
    color: var(--sidebar-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
}

.forgot-password {
    align-items: flex-end;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.login-button{
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: var(--primary-hover);
}

.login-button:active {
    transform: translateY(1px);
}


.register-button {
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-button:hover {
    background: var(--primary-hover);
}

.register-button:active {
    transform: translateY(1px);
}

.register-section {
    align-items: center;
    text-align: center;
}

.register-text {
    color: var(--muted-text);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    margin: 0;
}

.register-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    color: var(--danger-color);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 400;
    margin-bottom: 4px;
}

.error-list li:last-child {
    margin-bottom: 0;
}

/* Login Page Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 24px;
        gap: 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .form-input {
        height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .login-button {
        height: 44px;
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container,
    .directory-container {
        padding: 16px;
        gap: 12px;
    }
    
    .search-actions-bar,
    .welcome-section,
    .directory-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .directory-search-section {
        width: 100%;
    }
    
    .folders-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .folder-card {
        width: 100%;
    }
    
    .files-grid {
        flex-direction: column;
    }
    
    .file-card {
        min-width: auto;
    }
    
    .files-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .files-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .table-header,
    .table-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-cell,
    .name-cell,
    .folder-cell,
    .shared-by-cell,
    .file-size-cell,
    .modified-cell,
    .actions-cell {
        width: auto;
        border: none;
        padding: 8px 12px;
    }
    
    .filter-dropdowns {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-dropdown {
        width: 100%;
    }
}

/* File Preview Responsive Styles */
@media (max-width: 1200px) {
    .file-preview-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .file-details-sidebar {
        width: 100%;
        order: -1;
    }
    
    .file-preview-main {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .file-preview-container {
        padding: 16px;
    }
    
    .file-preview-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .breadcrumb-path {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .breadcrumb-item,
    .breadcrumb-current {
        font-size: 14px;
    }
    
    .breadcrumb-separator {
        width: 16px;
        height: 16px;
    }
    
    .file-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-button {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .action-button img {
        width: 14px;
        height: 14px;
    }
    
    .file-preview-content {
        gap: 12px;
    }
    
    .file-preview-main {
        min-height: 300px;
    }
    
    .file-preview-area {
        min-height: 250px;
    }
    
    .image-preview {
        padding: 16px;
    }
    
    .preview-image {
        max-width: 100%;
        max-height: 200px;
    }
    
    .pdf-preview iframe {
        height: 400px;
    }
    
    .text-preview {
        padding: 16px;
    }
    
    .text-preview pre {
        font-size: 12px;
    }
    
    .file-preview-placeholder {
        padding: 24px 16px;
    }
    
    .file-preview-placeholder h3 {
        font-size: 16px;
    }
    
    .file-preview-placeholder p {
        font-size: 12px;
    }
    
    .file-type-icon-large {
        width: 64px;
        height: 64px;
    }
    
    .file-type-icon-large img {
        width: 32px;
        height: 32px;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .file-info-card,
    .comments-section,
    .activity-section {
        margin-bottom: 16px;
    }
    
    .file-info-header,
    .comments-header,
    .activity-header {
        padding: 12px;
    }
    
    .file-info-header h3,
    .comments-header h3,
    .activity-header h3 {
        font-size: 14px;
    }
    
    .file-info-content {
        padding: 12px;
    }
    
    .file-info-item {
        padding: 8px 0;
        flex-direction: column;
        gap: 4px;
    }
    
    .info-label {
        font-size: 12px;
        font-weight: 600;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    .comments-list {
        padding: 12px;
    }
    
    .comment-item {
        padding: 8px 0;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .comment-author {
        font-size: 12px;
        font-weight: 600;
    }
    
    .comment-date {
        font-size: 10px;
    }
    
    .comment-content {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .comment-form {
        padding: 12px;
    }
    
    .comment-form textarea {
        font-size: 12px;
        padding: 8px;
    }
    
    .comment-form-actions {
        gap: 8px;
    }
    
    .cancel-btn,
    .submit-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .activity-list {
        padding: 12px;
    }
    
    .activity-item {
        padding: 8px 0;
        gap: 8px;
    }
    
    .activity-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    .activity-icon img {
        width: 12px;
        height: 12px;
    }
    
    .activity-text {
        font-size: 12px;
    }
    
    .activity-date {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .file-preview-container {
        padding: 12px;
    }
    
    .file-preview-header {
        gap: 12px;
    }
    
    .breadcrumb-path {
        gap: 2px;
    }
    
    .breadcrumb-item,
    .breadcrumb-current {
        font-size: 12px;
    }
    
    .file-actions {
        gap: 8px;
    }
    
    .action-button {
        padding: 6px 8px;
        font-size: 11px;
        gap: 2px;
    }
    
    .action-button span {
        display: none;
    }
    
    .action-button img {
        width: 12px;
        height: 12px;
    }
    
    .file-preview-main {
        min-height: 250px;
    }
    
    .file-preview-area {
        min-height: 200px;
    }
    
    .image-preview {
        padding: 12px;
    }
    
    .preview-image {
        max-height: 150px;
    }
    
    .pdf-preview iframe {
        height: 300px;
    }
    
    .text-preview {
        padding: 12px;
    }
    
    .text-preview pre {
        font-size: 11px;
    }
    
    .file-preview-placeholder {
        padding: 16px 12px;
    }
    
    .file-preview-placeholder h3 {
        font-size: 14px;
    }
    
    .file-preview-placeholder p {
        font-size: 11px;
    }
    
    .file-type-icon-large {
        width: 48px;
        height: 48px;
    }
    
    .file-type-icon-large img {
        width: 24px;
        height: 24px;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 11px;
        gap: 4px;
    }
    
    .download-button img {
        width: 12px;
        height: 12px;
    }
    
    .file-info-header,
    .comments-header,
    .activity-header {
        padding: 10px;
    }
    
    .file-info-header h3,
    .comments-header h3,
    .activity-header h3 {
        font-size: 13px;
    }
    
    .file-info-content,
    .comments-list,
    .activity-list,
    .comment-form {
        padding: 10px;
    }
    
    .file-info-item {
        padding: 6px 0;
    }
    
    .info-label,
    .info-value {
        font-size: 11px;
    }
    
    .comment-author {
        font-size: 11px;
    }
    
    .comment-date {
        font-size: 9px;
    }
    
    .comment-content {
        font-size: 11px;
    }
    
    .comment-form textarea {
        font-size: 11px;
        padding: 6px;
    }
    
    .cancel-btn,
    .submit-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .activity-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    .activity-icon img {
        width: 10px;
        height: 10px;
    }
    
    .activity-text {
        font-size: 11px;
    }
    
    .activity-date {
        font-size: 9px;
    }
}

/* Creator Badge Styles */
.creator-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.manager-badge {
    background-color: #FF9000;
}

.client-badge {
    background-color: #007bff;
}

.folder-card, .file-card {
    position: relative;
}

.folder-card-preview, .file-card-preview {
    position: relative;
}

/* Admin Dashboard Styles */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.bg-purple {
    background-color: #6f42c1;
}

.bg-teal {
    background-color: #20c997;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6c757d;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
}

.health-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.health-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 16px;
}

.health-info h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.health-info .badge {
    font-size: 12px;
}

.btn-custom-outline {
    border: 1px solid #dee2e6;
    background-color: transparent;
    color: #495057;
    transition: all 0.2s ease;
}

.btn-custom-outline:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}


.promo-code-cont {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#apply-promo {
    width: 100%;
    margin: 0;
}

