/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-primary: #0061FF;
    --blue-hover: #004FC4;
    --blue-light: #E8F0FE;
    --gray-50: #F7F8FA;
    --gray-100: #F1F3F5;
    --gray-200: #E4E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --red-500: #EF4444;
    --red-600: #DC2626;
    --green-500: #10B981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 12px 24px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 20px 40px -2px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --viewer-width: 50%;
}

[data-theme="dark"] {
    --blue-primary: #3B82F6;
    --blue-hover: #60A5FA;
    --blue-light: rgba(59, 130, 246, 0.1);
    --gray-50: #0F172A;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748B;
    --gray-500: #94A3B8;
    --gray-600: #CBD5E1;
    --gray-700: #E2E8F0;
    --gray-800: #F1F5F9;
    --gray-900: #F8FAFC;
    --white: #1E293B;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px -1px rgba(0, 0, 0, 0.3), 0 4px 8px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 30px -3px rgba(0, 0, 0, 0.4), 0 10px 20px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header {
    border-bottom: 1px solid #222e42;
}

[data-theme="dark"] .file-list {
    border-color: #3d485a;
}

[data-theme="dark"] .file-list-header {
    background: var(--gray-100);
    border-bottom: 1px solid #3d485a;
}

[data-theme="dark"] .file-row {
    border-bottom: 1px solid #3d485a;
}

[data-theme="dark"] .file-row:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .file-row.active-row {
    background: var(--blue-light);
    border-left-color: var(--blue-primary);
}

[data-theme="dark"] .file-row.active-row a {
    color: var(--blue-hover);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color: #FFFFFF !important;
}

[data-theme="dark"] ::placeholder {
    color: var(--gray-500) !important;
}

[data-theme="dark"] .footer-container {
    border-top-color: var(--gray-200);
}

/* Global */
.no-transitions * {
    transition: none !important;
    animation: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--blue-primary);
    text-decoration: none;
}

a:hover {
    color: var(--blue-hover);
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid #ebebeb;
    height: 80px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.header-logo img {
    height: 54px;
    width: auto;
}

.header-separator {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

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

.header-action-btn {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}

.header-action-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 320px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--gray-50);
    transition: all 0.2s;
}

.header-search input:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.header-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    width: 18px;
    height: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--gray-100);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border: none;
    transition: background 0.2s;
    position: relative;
}

.user-menu:hover {
    background: var(--gray-200);
}

.user-menu {
    position: relative;
    overflow: hidden;
}

.user-name,
.user-logout {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.user-name {
    opacity: 1;
    transform: translateY(0);
}

.user-logout {
    position: absolute;
    left: 48px;
    opacity: 0;
    transform: translateY(100%);
}

.user-menu:hover .user-name {
    opacity: 0;
    transform: translateY(-100%);
}

.user-menu:hover .user-logout {
    opacity: 1;
    transform: translateY(0);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Main Layout */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: var(--white);
    min-height: auto;
    animation: pageFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.file-content {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
    display: flex;
    flex-direction: column;
}

.viewer-panel {
    width: var(--viewer-width);
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    display: none;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#viewerContent>* {
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header,
.main-container,
.footer,
.header-container,
.file-content,
.footer-container,
.file-list {
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

body.viewer-active .header,
body.viewer-active .main-container,
body.viewer-active .footer,
body.viewer-closing .header,
body.viewer-closing .main-container,
body.viewer-closing .footer {
    width: calc(100% - var(--viewer-width)) !important;
    max-width: none !important;
    justify-content: flex-start !important;
}

body.viewer-active .header-container,
body.viewer-active .file-content,
body.viewer-active .footer-container,
body.viewer-closing .header-container,
body.viewer-closing .file-content,
body.viewer-closing .footer-container {
    width: calc(100% - 48px) !important;
    max-width: none !important;
}

body.viewer-active .file-list,
body.viewer-closing .file-list {
    width: 100% !important;
    max-width: none !important;
}

body.viewer-active .header-container,
body.viewer-active .file-content,
body.viewer-active .footer-container,
body.viewer-closing .header-container,
body.viewer-closing .file-content,
body.viewer-closing .footer-container {
    margin-left: 24px !important;
    margin-right: auto !important;
}

body.viewer-active .file-list,
body.viewer-closing .file-list {
    margin: 0 !important;
}

.viewer-panel.active {
    display: flex;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-panel.closing {
    display: flex;
    animation: slideOutRight 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.viewer-resizer {
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 1001;
    transition: background 0.2s;
}

.viewer-resizer:hover,
.is-resizing .viewer-resizer {
    background: var(--blue-primary);
    opacity: 0.5;
}

.is-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

.is-resizing iframe {
    pointer-events: none !important;
}


.viewer-panel.active {
    display: flex;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-panel.closing {
    display: flex;
    animation: slideOutRight 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.viewer-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.viewer-panel-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}

.viewer-panel h3 {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gray-500);
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.breadcrumbs a:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.breadcrumbs .separator {
    color: var(--gray-400);
    font-size: 12px;
}

.breadcrumbs .current {
    color: var(--gray-800);
    font-weight: 600;
    padding: 4px 6px;
}

/* Page Title */
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.btn:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-200);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn.delete {
    background: var(--red-500);
    color: #FFFFFF !important;
    border-color: var(--red-500);
}

.btn.delete:hover {
    background: var(--red-600);
    border-color: var(--red-600);
}

.btn-primary {
    background: var(--blue-primary);
    color: #FFFFFF !important;
    border-color: var(--blue-primary);
}

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

.btn-danger {
    background: var(--red-500);
    color: #FFFFFF !important;
    border-color: var(--red-500);
}

.btn-danger:hover {
    background: var(--red-600);
    border-color: var(--red-600);
    color: #FFFFFF !important;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Info Box */
.info-box {
    background: var(--blue-light);
    border: 1px solid #B6D4FE;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.info-box a {
    color: var(--blue-primary);
    font-weight: 500;
}

.info-box h2,
.info-box h3 {
    margin-top: 12px;
    margin-bottom: 6px;
}

.info-box h2:first-child,
.info-box h3:first-child {
    margin-top: 0;
}

.info-box ul {
    margin: 6px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 4px 0;
}

/* File List */
.file-list {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 1600px;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

.file-list-header {
    display: grid;
    grid-template-columns: 1fr 100px 140px 120px;
    padding: 10px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.file-list-header.is-sticky {
    position: sticky;
    top: 134px;
    z-index: 10;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.file-row {
    display: grid;
    grid-template-columns: 1fr 100px 140px 120px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    transition: background 0.1s, border-left 0.1s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

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

.file-row:hover {
    background: var(--gray-50);
}

.file-row.active-row {
    background: var(--blue-light);
    border-left-color: var(--blue-primary);
}

.file-row a {
    color: var(--gray-800);
}

.file-row.active-row a {
    color: var(--blue-primary);
    font-weight: 600;
}

.file-row a:hover {
    color: var(--blue-primary);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-name a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
}

.file-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.file-size,
.file-modified {
    font-size: 13px;
    color: var(--gray-500);
}

.file-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    justify-content: flex-end;
}

.file-row:hover .file-actions {
    opacity: 1;
}

@media (max-width: 1200px) {

    .file-list-header,
    .file-row {
        grid-template-columns: 1fr 90px 120px;
    }

    .file-modified,
    .file-list-header span:nth-child(3) {
        display: none !important;
    }
}

@media (max-width: 800px) {

    .file-list-header,
    .file-row {
        grid-template-columns: 1fr 120px;
    }

    .file-size,
    .file-list-header span:nth-child(2) {
        display: none !important;
    }
}

.file-action-btn {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-400);
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-action-btn:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.file-action-btn.delete:hover {
    color: var(--red-500);
    background: #FEE2E2;
}

/* File Icons */
.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 24px;
    height: 24px;
}

.icon-folder {
    color: #60A5FA;
}

.icon-pdf {
    color: #EF4444;
}

.icon-word {
    color: #2563EB;
}

.icon-excel {
    color: #059669;
}

.icon-powerpoint {
    color: #EA580C;
}

.icon-image {
    color: #8B5CF6;
}

.icon-text {
    color: var(--gray-500);
}

.icon-link {
    color: #0891B2;
}

.icon-archive {
    color: #D97706;
}

.icon-file {
    color: var(--gray-400);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.empty-state p {
    font-size: 14px;
}

/* Login Page */
.login-page {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: var(--white);
    position: relative;
}

.login-left-content {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    padding: 60px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.login-brand-logo {
    height: 48px;
    width: auto;
}

[data-theme="dark"] .login-brand-logo {
    filter: brightness(0) invert(1);
}

.login-brand-separator {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}

.login-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.login-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.login-hero p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-btn-uu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #990000;
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(153, 0, 0, 0.3), 0 4px 12px rgba(153, 0, 0, 0.15);
}

.login-btn-uu:hover {
    background: #7a0000;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(153, 0, 0, 0.35), 0 8px 20px rgba(153, 0, 0, 0.2);
}

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

.login-btn-uu svg {
    width: 20px;
    height: 20px;
}

.login-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue-primary);
}

.login-feature strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.login-feature span {
    font-size: 13px;
    color: var(--gray-500);
}

.login-footer {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 60px;
}

.login-footer-text {
    font-size: 13px;
    color: var(--gray-400);
}

.login-right {
    flex: 1;
    background: linear-gradient(135deg, #990000 0%, #660000 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

.login-right-content {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.login-right-icon {
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.2);
}

.floating-doc {
    position: absolute;
    opacity: 0.12;
    color: rgba(255, 255, 255, 0.2);
    width: min(100px, 7vw);
    height: min(100px, 7vw);
}

/* Apply float animation to all documents */
.floating-doc-1,
.floating-doc-2,
.floating-doc-3,
.floating-doc-4,
.floating-doc-5,
.floating-doc-6,
.floating-doc-7,
.floating-doc-8,
.floating-doc-9,
.floating-doc-10,
.floating-doc-11,
.floating-doc-12,
.floating-doc-13,
.floating-doc-14,
.floating-doc-15,
.floating-doc-16,
.floating-doc-17,
.floating-doc-18,
.floating-doc-19,
.floating-doc-20,
.floating-doc-21,
.floating-doc-22,
.floating-doc-23,
.floating-doc-24,
.floating-doc-25,
.floating-doc-26,
.floating-doc-27,
.floating-doc-28,
.floating-doc-29,
.floating-doc-30,
.floating-doc-31,
.floating-doc-32,
.floating-doc-33,
.floating-doc-34,
.floating-doc-35,
.floating-doc-36,
.floating-doc-37,
.floating-doc-38,
.floating-doc-39,
.floating-doc-40,
.floating-doc-41,
.floating-doc-42,
.floating-doc-43,
.floating-doc-44,
.floating-doc-45,
.floating-doc-46,
.floating-doc-47,
.floating-doc-48,
.floating-doc-49,
.floating-doc-50,
.floating-doc-51,
.floating-doc-52,
.floating-doc-53,
.floating-doc-54,
.floating-doc-55,
.floating-doc-56,
.floating-doc-57,
.floating-doc-58,
.floating-doc-59,
.floating-doc-60,
.floating-doc-61,
.floating-doc-62,
.floating-doc-63,
.floating-doc-64,
.floating-doc-65,
.floating-doc-66,
.floating-doc-67,
.floating-doc-68,
.floating-doc-69,
.floating-doc-70 {
    animation: float-up-straight 60s linear infinite;
}

/* Apply random glow to 40 documents total, spread across columns */
/* Glowing documents - spread across columns */
/* Column 1 - docs 1, 2, 3, 4, 36, 37, 38, 39 (upward: 45s) */
.floating-doc-1 {
    animation: float-up-straight 45s linear infinite, random-glow 13s ease-in-out infinite;
    animation-delay: 0s, -1s;
}

.floating-doc-2 {
    animation: float-up-straight 45s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: -5s, -1s;
}

.floating-doc-3 {
    animation: float-up-straight 45s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -10s, -5s;
}

.floating-doc-4 {
    animation: float-up-straight 45s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -15s, -4s;
}

.floating-doc-36 {
    animation: float-up-straight 45s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -25s, -3s;
}

.floating-doc-37 {
    animation: float-up-straight 45s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -30s, -2s;
}

.floating-doc-38 {
    animation: float-up-straight 45s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -35s, -3s;
}

.floating-doc-39 {
    animation: float-up-straight 45s linear infinite, random-glow 19s ease-in-out infinite;
    animation-delay: -40s, -6s;
}

/* Column 2 - docs 6, 7, 8, 9, 40, 41 (downward: 32s) */
.floating-doc-6 {
    animation: float-down-straight 32s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: 0s, -1s;
}

.floating-doc-7 {
    animation: float-down-straight 32s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -3.56s, -2s;
}

.floating-doc-8 {
    animation: float-down-straight 32s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -7.11s, -4s;
}

.floating-doc-9 {
    animation: float-down-straight 32s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -10.67s, -5s;
}

.floating-doc-40 {
    animation: float-down-straight 32s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -17.78s, -2s;
}

.floating-doc-41 {
    animation: float-down-straight 32s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -21.33s, -3s;
}

/* Column 3 - docs 11, 12, 13, 14, 44, 45, 46 (upward: 58s) */
.floating-doc-11 {
    animation: float-up-straight 58s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: 0s, -3s;
}

.floating-doc-12 {
    animation: float-up-straight 58s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -6.44s, -4s;
}

.floating-doc-13 {
    animation: float-up-straight 58s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -12.89s, -2s;
}

.floating-doc-14 {
    animation: float-up-straight 58s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: -19.33s, -1s;
}

.floating-doc-44 {
    animation: float-up-straight 58s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -32.22s, -5s;
}

.floating-doc-45 {
    animation: float-up-straight 58s linear infinite, random-glow 19s ease-in-out infinite;
    animation-delay: -38.67s, -6s;
}

.floating-doc-46 {
    animation: float-up-straight 58s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -45.11s, -2s;
}

/* Column 4 - docs 16, 17, 18, 19, 48, 49 (downward: 26s) */
.floating-doc-16 {
    animation: float-down-straight 26s linear infinite, random-glow 13s ease-in-out infinite;
    animation-delay: 0s, -1s;
}

.floating-doc-17 {
    animation: float-down-straight 26s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -2.89s, -5s;
}

.floating-doc-18 {
    animation: float-down-straight 26s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: -5.78s, -1s;
}

.floating-doc-19 {
    animation: float-down-straight 26s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -8.67s, -2s;
}

.floating-doc-48 {
    animation: float-down-straight 26s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -14.44s, -5s;
}

.floating-doc-49 {
    animation: float-down-straight 26s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -17.33s, -4s;
}

/* Column 5 - docs 21, 22, 23, 24, 52, 53 (upward: 63s) */
.floating-doc-21 {
    animation: float-up-straight 63s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: 0s, -3s;
}

.floating-doc-22 {
    animation: float-up-straight 63s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -7s, -5s;
}

.floating-doc-23 {
    animation: float-up-straight 63s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: -14s, -1s;
}

.floating-doc-24 {
    animation: float-up-straight 63s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -21s, -2s;
}

.floating-doc-52 {
    animation: float-up-straight 63s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -35s, -4s;
}

.floating-doc-53 {
    animation: float-up-straight 63s linear infinite, random-glow 19s ease-in-out infinite;
    animation-delay: -42s, -6s;
}

/* Column 6 - docs 26, 27, 28, 29, 56, 57, 58 (downward: 52s) */
.floating-doc-26 {
    animation: float-down-straight 52s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: 0s, -2s;
}

.floating-doc-27 {
    animation: float-down-straight 52s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -5.78s, -3s;
}

.floating-doc-28 {
    animation: float-down-straight 52s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: -11.56s, -3s;
}

.floating-doc-29 {
    animation: float-down-straight 52s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -17.33s, -4s;
}

.floating-doc-56 {
    animation: float-down-straight 52s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -28.89s, -5s;
}

.floating-doc-57 {
    animation: float-down-straight 52s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -34.67s, -2s;
}

.floating-doc-58 {
    animation: float-down-straight 52s linear infinite, random-glow 19s ease-in-out infinite;
    animation-delay: -40.44s, -6s;
}

/* Column 7 - docs 31, 32, 33, 60, 61, 62 (upward: 38s) */
.floating-doc-31 {
    animation: float-up-straight 38s linear infinite, random-glow 14s ease-in-out infinite;
    animation-delay: 0s, -1s;
}

.floating-doc-32 {
    animation: float-up-straight 38s linear infinite, random-glow 17s ease-in-out infinite;
    animation-delay: -4.22s, -4s;
}

.floating-doc-33 {
    animation: float-up-straight 38s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -8.44s, -2s;
}

.floating-doc-60 {
    animation: float-up-straight 38s linear infinite, random-glow 16s ease-in-out infinite;
    animation-delay: -21.11s, -3s;
}

.floating-doc-61 {
    animation: float-up-straight 38s linear infinite, random-glow 18s ease-in-out infinite;
    animation-delay: -25.33s, -5s;
}

.floating-doc-62 {
    animation: float-up-straight 38s linear infinite, random-glow 15s ease-in-out infinite;
    animation-delay: -29.56s, -2s;
}

@keyframes random-glow {

    0%,
    70%,
    100% {
        opacity: 0.12;
        color: rgba(255, 255, 255, 0.2);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    80% {
        opacity: 0.6;
        color: rgba(255, 255, 255, 0.7);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }

    85% {
        opacity: 0.75;
        color: rgba(255, 255, 255, 0.85);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
    }

    90% {
        opacity: 0.6;
        color: rgba(255, 255, 255, 0.7);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

/* Column 1 - 5% (45s) - 9 docs evenly spaced */
.floating-doc-1 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: 0s;
}

.floating-doc-2 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -5s;
}

.floating-doc-3 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -10s;
}

.floating-doc-4 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -15s;
}

.floating-doc-5 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -20s;
}

.floating-doc-36 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -25s;
}

.floating-doc-37 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -30s;
}

.floating-doc-38 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -35s;
}

.floating-doc-39 {
    left: 5%;
    animation-duration: 45s;
    animation-delay: -40s;
}

/* Column 2 - 18% (downward: 32s) - 9 docs evenly spaced */
.floating-doc-6 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: 0s;
    animation-name: float-down-straight;
}

.floating-doc-7 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -3.56s;
}

.floating-doc-8 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -7.11s;
    animation-name: float-down-straight;
}

.floating-doc-9 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -10.67s;
    animation-name: float-down-straight;
}

.floating-doc-10 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -14.22s;
    animation-name: float-down-straight;
}

.floating-doc-40 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -17.78s;
    animation-name: float-down-straight;
}

.floating-doc-41 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -21.33s;
    animation-name: float-down-straight;
}

.floating-doc-42 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -24.89s;
    animation-name: float-down-straight;
}

.floating-doc-43 {
    left: 18%;
    animation-duration: 32s;
    animation-delay: -28.44s;
    animation-name: float-down-straight;
}

/* Column 3 - 31% (58s) - 9 docs evenly spaced */
.floating-doc-11 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: 0s;
}

.floating-doc-12 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -6.44s;
}

.floating-doc-13 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -12.89s;
}

.floating-doc-14 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -19.33s;
}

.floating-doc-15 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -25.78s;
}

.floating-doc-44 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -32.22s;
}

.floating-doc-45 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -38.67s;
}

.floating-doc-46 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -45.11s;
}

.floating-doc-47 {
    left: 31%;
    animation-duration: 58s;
    animation-delay: -51.56s;
}

/* Column 4 - 44% (downward: 26s) - 9 docs evenly spaced */
.floating-doc-16 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: 0s;
    animation-name: float-down-straight;
}

.floating-doc-17 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -2.89s;
}

.floating-doc-18 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -5.78s;
    animation-name: float-down-straight;
}

.floating-doc-19 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -8.67s;
    animation-name: float-down-straight;
}

.floating-doc-20 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -11.56s;
    animation-name: float-down-straight;
}

.floating-doc-48 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -14.44s;
    animation-name: float-down-straight;
}

.floating-doc-49 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -17.33s;
    animation-name: float-down-straight;
}

.floating-doc-50 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -20.22s;
    animation-name: float-down-straight;
}

.floating-doc-51 {
    left: 44%;
    animation-duration: 26s;
    animation-delay: -23.11s;
    animation-name: float-down-straight;
}

/* Column 5 - 57% (63s) - 9 docs evenly spaced */
.floating-doc-21 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: 0s;
}

.floating-doc-22 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -7s;
}

.floating-doc-23 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -14s;
}

.floating-doc-24 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -21s;
}

.floating-doc-25 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -28s;
}

.floating-doc-52 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -35s;
}

.floating-doc-53 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -42s;
}

.floating-doc-54 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -49s;
}

.floating-doc-55 {
    left: 57%;
    animation-duration: 63s;
    animation-delay: -56s;
}

/* Column 6 - 70% (downward: 52s) - 9 docs evenly spaced */
.floating-doc-26 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: 0s;
    animation-name: float-down-straight;
}

.floating-doc-27 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -5.78s;
    animation-name: float-down-straight;
}

.floating-doc-28 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -11.56s;
    animation-name: float-down-straight;
}

.floating-doc-29 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -17.33s;
    animation-name: float-down-straight;
}

.floating-doc-30 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -23.11s;
    animation-name: float-down-straight;
}

.floating-doc-56 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -28.89s;
    animation-name: float-down-straight;
}

.floating-doc-57 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -34.67s;
    animation-name: float-down-straight;
}

.floating-doc-58 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -40.44s;
    animation-name: float-down-straight;
}

.floating-doc-59 {
    left: 70%;
    animation-duration: 52s;
    animation-delay: -46.22s;
    animation-name: float-down-straight;
}

/* Column 7 - 83% (38s) - 9 docs evenly spaced */
.floating-doc-31 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: 0s;
}

.floating-doc-32 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -4.22s;
}

.floating-doc-33 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -8.44s;
}

.floating-doc-34 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -12.67s;
}

.floating-doc-35 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -16.89s;
}

.floating-doc-60 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -21.11s;
}

.floating-doc-61 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -25.33s;
}

.floating-doc-62 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -29.56s;
}

.floating-doc-63 {
    left: 83%;
    animation-duration: 38s;
    animation-delay: -33.78s;
}

/* Hide unused documents */
.floating-doc-64,
.floating-doc-65,
.floating-doc-66,
.floating-doc-67,
.floating-doc-68,
.floating-doc-69,
.floating-doc-70 {
    display: none;
}

/* Responsive sizing for smaller screens to prevent overlap */
@media (max-width: 1400px) {
    .floating-doc {
        width: min(85px, 6vw);
        height: min(85px, 6vw);
    }
}

@media (max-width: 1200px) {
    .floating-doc {
        width: min(70px, 5.5vw);
        height: min(70px, 5.5vw);
    }

    /* Hide rightmost 2 columns (columns 6 & 7) and extra documents */
    .floating-doc-26,
    .floating-doc-27,
    .floating-doc-28,
    .floating-doc-29,
    .floating-doc-30,
    .floating-doc-31,
    .floating-doc-32,
    .floating-doc-33,
    .floating-doc-34,
    .floating-doc-35,
    .floating-doc-36,
    .floating-doc-37,
    .floating-doc-38,
    .floating-doc-39,
    .floating-doc-40,
    .floating-doc-41,
    .floating-doc-42,
    .floating-doc-43,
    .floating-doc-44,
    .floating-doc-45,
    .floating-doc-46,
    .floating-doc-47,
    .floating-doc-48,
    .floating-doc-49,
    .floating-doc-50,
    .floating-doc-51,
    .floating-doc-52,
    .floating-doc-53,
    .floating-doc-54,
    .floating-doc-55,
    .floating-doc-56,
    .floating-doc-57,
    .floating-doc-58,
    .floating-doc-59,
    .floating-doc-60,
    .floating-doc-61,
    .floating-doc-62,
    .floating-doc-63,
    .floating-doc-64,
    .floating-doc-65,
    .floating-doc-66,
    .floating-doc-67,
    .floating-doc-68,
    .floating-doc-69,
    .floating-doc-70 {
        display: none;
    }
}

@media (max-width: 900px) {
    .floating-doc {
        width: min(60px, 6vw);
        height: min(60px, 6vw);
    }

    /* Keep only 3 columns (1, 3, 5) with 3 docs each */
    .floating-doc-6,
    .floating-doc-7,
    .floating-doc-8,
    .floating-doc-9,
    .floating-doc-10,
    .floating-doc-16,
    .floating-doc-17,
    .floating-doc-18,
    .floating-doc-19,
    .floating-doc-20,
    .floating-doc-4,
    .floating-doc-5,
    .floating-doc-14,
    .floating-doc-15,
    .floating-doc-24,
    .floating-doc-25 {
        display: none;
    }
}

@media (max-width: 600px) {
    .floating-doc {
        width: min(70px, 9vw);
        height: min(70px, 9vw);
    }

    /* Keep only 2 columns (1 & 5) with 2 docs each */
    .floating-doc-11,
    .floating-doc-12,
    .floating-doc-13,
    .floating-doc-3,
    .floating-doc-23 {
        display: none;
    }
}

@keyframes float-up-straight {
    0% {
        transform: translateY(110vh);
        opacity: 0;
    }

    5% {
        opacity: 0.12;
    }

    95% {
        opacity: 0.12;
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

@keyframes float-down-straight {
    0% {
        transform: translateY(-110vh);
        opacity: 0;
    }

    5% {
        opacity: 0.12;
    }

    95% {
        opacity: 0.12;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

[data-theme="dark"] .login-right {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-left: 1px solid var(--gray-200);
}

@media (max-width: 1024px) {
    .login-left-content {
        max-width: 420px;
        padding: 48px 40px;
    }

    .login-hero h1 {
        font-size: 32px;
    }

    .login-footer {
        padding: 0 40px;
    }

    .floating-doc {
        width: min(80px, 7vw);
        height: min(80px, 7vw);
    }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .login-right {
        display: none;
    }

    .login-left {
        min-height: 100vh;
    }

    .login-left-content {
        max-width: 100%;
        padding: 40px 32px;
    }

    .login-hero h1 {
        font-size: 28px;
    }

    .login-brand {
        margin-bottom: 40px;
    }

    .login-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 48px;
        text-align: center;
        padding: 0 32px;
    }
}

@media (max-width: 480px) {
    .login-left-content {
        padding: 32px 24px;
    }

    .login-hero h1 {
        font-size: 24px;
    }

    .login-hero p {
        font-size: 15px;
    }

    .login-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 32px;
    }

    .login-brand-separator {
        display: none;
    }

    .login-brand-logo {
        height: 40px;
    }

    .login-btn-uu {
        padding: 14px 20px;
        font-size: 15px;
    }

    .login-features {
        gap: 16px;
    }

    .login-feature {
        gap: 12px;
    }

    .login-feature-icon {
        width: 36px;
        height: 36px;
    }

    .login-feature strong {
        font-size: 13px;
    }

    .login-feature span {
        font-size: 12px;
    }

    .login-footer {
        padding: 0 24px;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: var(--white);
    color: var(--gray-800);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.form-group select,
.form-group input[list] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input[list]::-webkit-calendar-picker-indicator {
    display: none !important;
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--gray-400);
    background-color: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-uu {
    background: #990000;
    color: var(--white) !important;
    border-color: #990000;
}

.btn-uu:hover {
    background: #770000;
    border-color: #770000;
    color: var(--white) !important;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: var(--red-600);
}

.alert-success {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* Upload Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 480px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--blue-primary);
    background: var(--blue-light);
}

.drop-zone svg {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.drop-zone p {
    font-size: 14px;
    color: var(--gray-600);
}

.drop-zone .browse-link {
    color: var(--blue-primary);
    font-weight: 500;
    cursor: pointer;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.1s;
}

.search-result-item:hover {
    background: var(--gray-50);
}

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

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-path {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        height: 64px;
        padding: 0;
    }

    .header-logo img {
        height: 36px;
    }

    .header-logo {
        font-size: 16px;
        gap: 10px;
    }

    .header-separator {
        display: none;
    }

    .btn-text,
    .user-name,
    .user-logout {
        display: none !important;
    }

    .btn svg {
        margin-right: 0 !important;
    }

    .user-menu {
        padding: 4px;
        background: transparent;
    }

    .breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .header-action-btn {
        padding: 8px;
    }

    .sticky-nav {
        top: 64px !important;
    }

    .file-list-header {
        top: 118px !important;
    }

    .main-container {
        padding: 0;
    }

    .file-content {
        padding: 12px;
    }

    .header-container {
        padding: 0 12px;
    }

    .footer-container {
        padding: 24px 12px;
        width: 100%;
    }

    .file-list-header,
    .file-row {
        grid-template-columns: 1fr 80px;
    }

    .file-modified,
    .file-actions {
        display: none;
    }

    .login-card {
        width: calc(100% - 32px);
        padding: 32px 24px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 32px 20px;
        width: 100%;
    }

    .footer-left {
        flex-direction: column;
        gap: 16px;
    }

    .footer-separator {
        display: none;
    }

    .footer-info {
        font-size: 13px;
        line-height: 1.6;
    }

    .dark-mode-toggle {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Fullscreen Viewer */
    .viewer-panel {
        width: 100% !important;
        border-left: none;
    }

    .viewer-resizer {
        display: none !important;
    }

    body.viewer-active .header,
    body.viewer-active .main-container,
    body.viewer-active .footer,
    body.viewer-closing .header,
    body.viewer-closing .main-container,
    body.viewer-closing .footer {
        width: 100% !important;
        transform: none !important;
    }

    body.viewer-active .header-container,
    body.viewer-active .file-content,
    body.viewer-active .footer-container,
    body.viewer-closing .header-container,
    body.viewer-closing .file-content,
    body.viewer-closing .footer-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 480px) {
    .header-logo {
        font-size: 14px;
    }

    .header-logo img {
        height: 28px;
    }

    .sticky-nav {
        top: 64px !important;
    }

    .file-list-header {
        top: 118px !important;
    }

    .file-list-header,
    .file-row {
        grid-template-columns: 1fr;
    }

    .file-size {
        display: none;
    }
}

/* Confirm Dialog */
.confirm-dialog {
    text-align: center;
}

.confirm-dialog p {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--gray-600);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Alert Modal */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.alert-modal.active {
    display: flex;
    opacity: 1;
}

.alert-modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-modal.active .alert-modal-content {
    transform: scale(1);
}

.alert-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.alert-modal-icon.warning {
    background: #FFFBEB;
    color: #F59E0B;
}

.alert-modal-icon.error {
    background: #FEF2F2;
    color: #EF4444;
}

.alert-modal-icon.info {
    background: #EFF6FF;
    color: #3B82F6;
}

.alert-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.alert-modal p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alert-modal-actions .btn {
    min-width: 100px;
    justify-content: center;
}

/* Toast styling (modernized) */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-900);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--red-600);
}

.toast.success {
    background: var(--green-500);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 0;
    margin-top: 32px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: calc(100% - 48px);
    max-width: 1230px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid var(--gray-200);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 64px;
    width: auto;
    margin-bottom: 6px;
}

.footer-logo span {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    color: #444;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-separator {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.footer-info {
    font-size: 14px;
    color: #718096;
}

.footer-info strong {
    color: #4a5568;
    margin-right: 4px;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1a202c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.dark-mode-toggle svg {
    color: #4a5568;
}

.dark-mode-toggle .theme-icon-light {
    display: none;
}

.dark-mode-toggle .theme-text {
    font-weight: 600;
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--gray-900);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .dark-mode-toggle svg {
    color: #94a3b8;
}

[data-theme="dark"] .header-logo img,
[data-theme="dark"] .footer-logo img {
    filter: brightness(0) invert(1);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--gray-900);
}

.tab-btn.active {
    color: var(--blue-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue-primary);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.log-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.log-row {
    display: grid;
    grid-template-columns: 160px 180px 120px 160px 1fr 120px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

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

.log-row:hover {
    background: var(--gray-50);
}

.log-header {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.log-action-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.badge-login {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-upload_file {
    background: #dcfce7;
    color: #15803d;
}

.badge-create_folder {
    background: #fef9c3;
    color: #a16207;
}

.badge-rename {
    background: #f3e8ff;
    color: #7e22ce;
}

.badge-delete {
    background: #fee2e2;
    color: #b91c1c;
}

[data-theme="dark"] .tab-btn:hover {
    color: var(--gray-900);
}

[data-theme="dark"] .log-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .log-header {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .log-row {
        grid-template-columns: 130px 100px 1fr;
    }

    .log-row .log-ip,
    .log-row .log-user,
    .log-row div:nth-child(5) {
        /* Details column */
        display: none;
    }
}

.badge-add_permission {
    background: #dcfce7;
    color: #15803d;
}

.badge-delete_permission {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-access_permissions {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="dark"] .badge-access_permissions {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
}

[data-theme="dark"] .badge-login {
    background: rgba(3, 105, 161, 0.2);
    color: #7dd3fc;
}

[data-theme="dark"] .badge-upload_file {
    background: rgba(21, 128, 61, 0.2);
    color: #86efac;
}

[data-theme="dark"] .badge-create_folder {
    background: rgba(161, 98, 7, 0.2);
    color: #fde047;
}

[data-theme="dark"] .badge-rename {
    background: rgba(126, 34, 206, 0.2);
    color: #d8b4fe;
}

[data-theme="dark"] .badge-delete {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
}

[data-theme="dark"] .badge-add_permission {
    background: rgba(21, 128, 61, 0.2);
    color: #86efac;
}

[data-theme="dark"] .badge-delete_permission {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--blue-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-bottom: 12px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Expandable Help Box */
.help-disclosure {
    background: var(--blue-light);
    border: 1px solid rgba(0, 97, 255, 0.1);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.help-disclosure[open] {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.help-disclosure summary {
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    outline: none;
}

.help-disclosure summary::-webkit-details-marker {
    display: none;
}

.help-disclosure summary::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--blue-primary);
    border-bottom: 2px solid var(--blue-primary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.help-disclosure[open] summary::before {
    transform: rotate(45deg);
}

.help-content {
    padding: 0 18px 18px 18px;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
}

.help-content h4 {
    color: var(--gray-900);
    font-size: 15px;
    margin: 16px 0 8px 0;
}

.help-content h4:first-child {
    margin-top: 0;
}

.help-content p {
    margin-bottom: 12px;
}

.help-content ul {
    margin: 10px 0 16px 20px;
}

.help-content li {
    margin-bottom: 6px;
}

.help-content strong {
    color: var(--gray-900);
}

/* Dark mode adjustments for help box */
[data-theme="dark"] .help-disclosure {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .help-disclosure[open] {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

/* Mobile-like design when viewer is active and space is limited */
@media (max-width: 1536px) {
    body.viewer-active .header {
        height: 64px;
    }

    body.viewer-active .header-logo img {
        height: 36px;
    }

    body.viewer-active .header-logo {
        font-size: 16px;
        gap: 10px;
    }

    body.viewer-active .header-separator {
        display: none;
    }

    body.viewer-active .btn-text,
    body.viewer-active .user-name,
    body.viewer-active .user-logout {
        display: none !important;
    }

    body.viewer-active .btn svg {
        margin-right: 0 !important;
    }

    body.viewer-active .user-menu {
        padding: 4px;
        background: transparent;
    }

    body.viewer-active .breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.viewer-active .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    body.viewer-active .file-content {
        padding: 12px;
    }

    body.viewer-active .file-list-header,
    body.viewer-active .file-row {
        grid-template-columns: 1fr 120px !important;
    }

    body.viewer-active .file-modified,
    body.viewer-active .file-size,
    body.viewer-active .file-list-header span:nth-child(2),
    body.viewer-active .file-list-header span:nth-child(3) {
        display: none !important;
    }
}

/* Even more compact for very small spaces or very wide viewer */
@media (max-width: 1100px) {
    body.viewer-active .header-actions .btn {
        padding: 8px;
    }
}

/* Activity Log Search & Pagination */
.log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.log-search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.log-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    color: var(--gray-900);
    transition: all 0.2s;
}

.log-search-input:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.log-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-bottom: 24px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--blue-primary);
    color: white;
    border-color: var(--blue-primary);
}

.pagination-info {
    font-size: 14px;
    color: var(--gray-500);
}

[data-theme="dark"] .log-search-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-200);
}

[data-theme="dark"] .pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

/* Highlight Search Results */
mark.highlight {
    background-color: #fde047;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

[data-theme="dark"] mark.highlight {
    background-color: #854d0e;
    color: #fde047;
}

/* Log Icons & Enhanced Actions */
.log-action-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.badge-login .log-icon-badge {
    background: #dcfce7;
    color: #166534;
}

.badge-upload_file .log-icon-badge {
    background: #dcfce7;
    color: #166534;
}

.badge-create_folder .log-icon-badge {
    background: #dcfce7;
    color: #166534;
}

.badge-rename .log-icon-badge {
    background: #fef9c3;
    color: #854d0e;
}

.badge-delete .log-icon-badge {
    background: #fee2e2;
    color: #991b1b;
}

.badge-add_permission .log-icon-badge {
    background: #e0f2fe;
    color: #075985;
}

.badge-delete_permission .log-icon-badge {
    background: #fee2e2;
    color: #991b1b;
}

.badge-access_permissions .log-icon-badge {
    background: #f3f4f6;
    color: #374151;
}

[data-theme="dark"] .badge-login .log-icon-badge {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .badge-upload_file .log-icon-badge {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .badge-create_folder .log-icon-badge {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .badge-rename .log-icon-badge {
    background: #713f12;
    color: #fde047;
}

[data-theme="dark"] .badge-delete .log-icon-badge {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .badge-add_permission .log-icon-badge {
    background: #0c4a6e;
    color: #7dd3fc;
}

[data-theme="dark"] .badge-delete_permission .log-icon-badge {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .badge-access_permissions .log-icon-badge {
    background: #374151;
    color: #d1d5db;
}

/* Enhanced Empty States */
.empty-state {
    padding: 64px 32px;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    color: var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    max-width: 320px;
}

.empty-state .btn {
    margin-top: 8px;
}

/* Spinner for loading states */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--blue-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

    100% {
        transform: rotate(360deg);
    }
}