:root {
    --color-primary-bg: #F0F4F8;
    --color-secondary-bg: #E3EBF3;
    --color-white: #FFFFFF;
    --color-primary: #038387;
    --color-primary-light: #03a6ab;
    --color-primary-dark: #026568;
    --color-accent: #00BCD4;
    --color-accent-light: #4DD0E1;
    --color-dark-bg: #1a1a1a;
    --color-dark-header: #000000;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --color-text-light: #FFFFFF;
    --color-border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--color-primary-bg) !important;
    color: var(--color-text-dark);
    font-weight: 500;
    margin: 0;
    padding-top: 70px;
}

input,
textarea,
select,
button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500;
}

input::placeholder,
textarea::placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #9CA3AF;
    font-weight: 400;
}

/* Horizontal Navigation Bar */
.navbar-horizontal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1F2933;
    color: var(--color-text-light);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-horizontal .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-horizontal .brand-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.navbar-horizontal .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-horizontal .brand-text {
    font-weight: 700;
    font-size: 18px;
    color: #B08D2D;
}

.navbar-horizontal .nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.navbar-horizontal .user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-horizontal .action-icon {
    color: var(--color-text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 18px;
}

.navbar-horizontal .action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-profile-dropdown .dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1100;
}

.user-profile-dropdown:hover .dropdown-content,
.user-profile-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #F1F5F9;
    color: #EF4444;
}

.dropdown-item i {
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 8px;
}

.navbar-horizontal .nav-item {
    position: relative;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-horizontal .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
}

.navbar-horizontal .nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    font-weight: 600;
}

.navbar-horizontal .nav-item i {
    font-size: 16px;
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    /* Khoảng cách nhỏ để dễ nhìn */
    left: 0;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 1001;
    pointer-events: auto;
    /* Quan trọng: cho phép nhận hover events */
}

/* CSS fallback cho trường hợp JavaScript không hoạt động */
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-dropdown a:hover {
    background: #FDF9F0;
    border-left-color: #B08D2D;
    color: #B08D2D;
}

.nav-dropdown a.active {
    background: rgba(176, 141, 45, 0.1);
    color: #B08D2D;
    font-weight: 600;
    border-left-color: #B08D2D;
}

.nav-dropdown a i {
    width: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.nav-dropdown a:hover i,
.nav-dropdown a.active i {
    color: #B08D2D;
}

.nav-dropdown-label {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

.nav-dropdown-label:first-child {
    border-top: none;
    padding-top: 12px;
}

/* Legacy color aliases for backward compatibility */
.admin-only {
    display: none !important;
}

.clerk-only {
    display: none !important;
}

.card-modern {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(3, 131, 135, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(3, 131, 135, 0.25);
    transition: all 0.25s ease;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 131, 135, 0.35);
}

.accent-gold {
    color: var(--color-accent);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

/* Main container transition */
main {
    transition: opacity 0.15s ease;
}

.content-fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.content-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bg-orange-500 {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.bg-blue-500 {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.bg-gradient-to-br {
    border: 1px solid var(--color-border);
}

/* Hamburger Menu for Mobile */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 1rem;
    z-index: 1004;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.hamburger-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        font-size: 16px;
        /* Prevent zoom on iOS when focusing inputs */
    }

    /* Đảm bảo layout trang chính xếp dọc và full width trên mobile */
    body.bg-mailand-bg-gray.flex {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-horizontal {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        padding-left: 60px;
        /* Make room for hamburger button */
        position: relative;
        z-index: 1000;
    }

    /* Ensure hamburger button is always on top and clickable */
    .hamburger-btn {
        position: fixed !important;
        top: 10px !important;
        left: 1rem !important;
        z-index: 1005 !important;
        display: flex !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .navbar-horizontal .brand {
        width: 100%;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-horizontal .nav-menu {
        width: 100%;
        flex-direction: row;
        /* Horizontal layout */
        align-items: center;
        justify-content: flex-start;
        margin-top: 0;
        display: none;
        position: relative;
        z-index: 1001;
        overflow-x: auto;
        /* Allow horizontal scroll if needed */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .navbar-horizontal .nav-menu.mobile-open {
        display: flex !important;
    }

    /* Make nav items fit horizontally */
    .navbar-horizontal .nav-item {
        width: auto;
        /* Auto width for horizontal layout */
        flex-shrink: 0;
        /* Prevent shrinking */
        white-space: nowrap;
        /* Prevent text wrapping */
        min-height: 44px;
        /* Touch target minimum */
        padding: 10px 14px;
        /* Reduced padding for horizontal fit */
        margin-right: 0.25rem;
        /* Small gap between items */
    }

    .navbar-horizontal .user-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-horizontal .action-icon {
        min-width: 44px;
        /* Touch target minimum */
        min-height: 44px;
        padding: 10px;
        /* Better touch area */
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        margin-left: 16px;
        display: none;
        /* Ẩn mặc định trên mobile, JavaScript sẽ toggle */
    }

    .nav-item.dropdown-open .nav-dropdown {
        display: block;
        /* Hiển thị khi được toggle */
    }

    .nav-dropdown a {
        min-height: 44px;
        /* Touch target minimum */
        padding: 12px 16px;
        /* Increased padding */
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        /* Touch target minimum */
        min-height: 44px;
        padding: 10px;
        /* Better touch area */
        z-index: 1004 !important;
        /* Ensure it's above navbar */
        pointer-events: auto !important;
        /* Ensure it's clickable */
        position: fixed !important;
        top: 10px !important;
        left: 1rem !important;
    }

    /* Ensure navbar doesn't block hamburger */
    .navbar-horizontal {
        z-index: 1000;
        position: relative;
    }

    /* Prevent navbar brand from blocking hamburger */
    .navbar-horizontal .brand {
        pointer-events: none;
    }

    .navbar-horizontal .brand * {
        pointer-events: auto;
    }

    .top-header .search-box {
        display: none;
    }

    main {
        padding: 1rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .mobile-hide {
        display: none !important;
    }

    table {
        font-size: 0.875rem;
        /* Slightly larger for readability */
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem !important;
        /* Better spacing */
    }

    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .modal-content,
    [class*="max-w-"] {
        max-width: 95vw !important;
        margin: 1rem !important;
    }

    /* Touch targets for buttons */
    button,
    .btn,
    [role="button"],
    a.button {
        min-height: 44px;
        /* Touch target minimum */
        min-width: 44px;
        padding: 0.75rem 1rem;
        /* Better touch area */
    }

    /* Form inputs - prevent zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
        min-height: 44px;
        /* Touch target minimum */
        padding: 0.75rem;
    }

    /* Dropdown items */
    .dropdown-item {
        min-height: 44px;
        /* Touch target minimum */
        padding: 12px 16px;
    }

    /* Folder cards */
    .folder-card-compact {
        min-height: 44px;
        /* Touch target minimum */
        padding: 1rem 1.25rem;
        /* Better touch area */
    }

    /* User profile trigger */
    .user-profile-trigger {
        min-height: 44px;
        /* Touch target minimum */
        padding: 8px 12px;
    }
}

.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* Main content adjustments */
main {
    margin-left: 0 !important;
}

/* Hidden admin sections */
.admin-section {
    display: none;
}


/* Toast Notifications */
.toast-notification {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    border-left: 4px solid #D1D5DB;
    animation: toast-slide-in 0.3s ease-out forwards;
    pointer-events: auto;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.toast-notification.success {
    border-left-color: #10B981;
}

.toast-notification.error {
    border-left-color: #EF4444;
}

.toast-notification.info {
    border-left-color: #3B82F6;
}

.toast-notification.warning {
    border-left-color: #F59E0B;
}

.toast-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    line-height: 1.4;
    flex-grow: 1;
}

.toast-close {
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.highlighted-new-file {
    background-color: #fdf6e7 !important;
    border-left: 4px solid #B08D2D !important;
    transition: all 0.5s ease;
    animation: highlight-pulse 2s infinite ease-in-out;
}

@keyframes highlight-pulse {
    0% {
        background-color: #fdf6e7;
    }

    50% {
        background-color: #fcf0d3;
    }

    100% {
        background-color: #fdf6e7;
    }
}

.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* Main content adjustments */
main {
    margin-left: 0 !important;
}

/* Hidden admin sections */
.admin-section {
    display: none;
}


/* Toast Notifications */
.toast-notification {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    border-left: 4px solid #D1D5DB;
    animation: toast-slide-in 0.3s ease-out forwards;
    pointer-events: auto;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.toast-notification.success {
    border-left-color: #10B981;
}

.toast-notification.error {
    border-left-color: #EF4444;
}

.toast-notification.info {
    border-left-color: #3B82F6;
}

.toast-notification.warning {
    border-left-color: #F59E0B;
}

.toast-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    line-height: 1.4;
    flex-grow: 1;
}

.toast-close {
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.highlighted-new-file {
    background-color: #fdf6e7 !important;
    border-left: 4px solid #B08D2D !important;
    transition: all 0.5s ease;
    animation: highlight-pulse 2s infinite ease-in-out;
}


@keyframes highlight-pulse {
    0% {
        background-color: #fdf6e7;
    }

    50% {
        background-color: #fcf0d3;
    }

    100% {
        background-color: #fdf6e7;
    }
}

/* Grouped Folder Layout */
.folder-group-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: auto;
    align-self: start;
    transition: all 0.3s ease;
}

.folder-group-column:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Collapsed state for folder groups */
.folder-group-column.collapsed .folder-group-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: all 0.3s ease;
}

.folder-group-column:not(.collapsed) .folder-group-content {
    max-height: 2000px;
    opacity: 1;
    margin-top: 0;
    transition: all 0.3s ease;
}

.folder-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 2px solid #B08D2D;
    border-radius: 12px;
    background-color: rgba(176, 141, 45, 0.05);
    box-shadow: 0 4px 6px -1px rgba(176, 141, 45, 0.1);
    min-height: 3.5rem;
    height: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.folder-group-title:hover {
    background-color: rgba(176, 141, 45, 0.1);
    box-shadow: 0 6px 10px -1px rgba(176, 141, 45, 0.15);
}

.folder-group-title img {
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    width: 30px;
    height: 30px;
    align-self: center;
}

.folder-group-title .header-accent-framed {
    width: 5px;
    height: 1.5rem;
    flex-shrink: 0;
    align-self: center;
}

.folder-group-title span {
    flex: 1;
    align-self: center;
    line-height: 1.2;
    text-align: left;
}

/* Collapse toggle button */
.collapse-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(176, 141, 45, 0.2);
    color: #B08D2D;
    transition: all 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.collapse-toggle:hover {
    background: rgba(176, 141, 45, 0.3);
    transform: scale(1.1);
}

.folder-group-column.collapsed .collapse-toggle i {
    transform: rotate(-90deg);
}

.folder-group-column:not(.collapsed) .collapse-toggle i {
    transform: rotate(0deg);
}

.collapse-toggle i {
    transition: transform 0.3s ease;
}

/* Folder group content wrapper */
.folder-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.folder-group-column:not(.collapsed) .folder-group-title {
    margin-bottom: 1.5rem;
}

.header-accent-framed {
    width: 5px;
    height: 1.5rem;
    background-color: #B08D2D;
    border-radius: 2px;
    flex-shrink: 0;
}

.folder-card-compact {
    background: white;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    /* Gray-300 for clearer border like in image */
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    position: relative;
    /* Enable absolute positioning for child elements */
}

.folder-card-compact:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #D4AF37;
    /* Gold/Yellow on hover */
}

/* Folder Tree Selection Styles */
.folder-tree-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    background: #f9fafb;
}

.folder-tree-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.folder-tree-item:hover {
    background: #eff6ff;
}

.folder-tree-children {
    margin-left: 1.5rem;
    border-left: 1px dashed #d1d5db;
    padding-left: 0.5rem;
}

.folder-tree-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.folder-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    /* Gold/Yellow color as requested */
    font-size: 1.2rem;
    flex-shrink: 0;
}

.folder-info-compact {
    flex-grow: 1;
    min-width: 0;
}

.folder-name-compact {
    font-family: 'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    /* Black text as requested */
    text-transform: none;
    /* Normal case as requested */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

.folder-storage-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* File Count Tag */
.file-count-tag {
    background-color: #10B981;
    /* Green background (Emerald-500) */
    color: white;
    font-size: 0.75rem;
    /* 12px */
    font-weight: 700;
    min-width: 28px;
    /* Minimum circular size */
    height: 28px;
    padding: 0;
    border-radius: 50%;
    /* Fully circular */
    position: absolute;
    right: 1rem;
    /* Align to right with some padding */
    top: 50%;
    transform: translateY(-50%);
    /* Center vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 28px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.folder-card-compact:hover .file-count-tag {
    background-color: #059669;
    /* Darker green on hover (Emerald-600) */
    box-shadow: 0 3px 6px rgba(16, 185, 129, 0.4);
    transform: translateY(-50%) scale(1.05);
    /* Slight scale on hover */
}

/* Table UI Refinements */
.table-container-accent {
    border-top: 3px solid #B08D2D !important;
}

#fileListSection .bg-mailand-green {
    background-color: #5E7552 !important;
    /* ~10% Lighter olive than #4A5C3F */
}