:root {
    --gradient-bg: #1e1e1e;
    --gradient-header: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    --gradient-btn: linear-gradient(135deg, #3a3f51, #2c2f3a);
    --gradient-btn-hover: linear-gradient(135deg, #4b5168, #343845);
    --hover-glow: 0 0 25px rgba(0, 200, 255, 0.6);
    --text-color: #f5f5f5;
    --border-light: rgba(255, 255, 255, 0.08);
    --card-bg-start: rgba(20, 20, 20, 0.7);
    --card-bg-end: rgba(60, 60, 60, 0.4);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --input-bg: #333;
    --input-border: #555;
    --focus-border: #00c8ff;
    --danger-btn: linear-gradient(135deg, #ff4e50, #c0392b);
    --danger-btn-hover: linear-gradient(135deg, #c0392b, #ff4e50);
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--gradient-bg);
    color: var(--text-color);
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}
#app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.app-loading #app-container {
    display: none;
}

.page {
    display: none;
}
.hidden {
    display: none !important;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

.button .spinner, .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.button .spinner-text {
    margin-left: 0.5rem;
}

.file-table-body tr.selected {
    background-color: rgba(0, 200, 255, 0.15) !important;
}

.file-table-body tr.selected:hover {
    background-color: rgba(0, 200, 255, 0.25) !important;
}

.centered-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}
.card {
    text-align: center;
    background: linear-gradient(145deg, var(--card-bg-start) 0%, rgba(30, 30, 30, 0.6) 40%, rgba(40, 40, 40, 0.5) 70%, var(--card-bg-end) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 28rem;
    min-width: 450px;
    min-height: 250px;
    padding: 2.5rem;
    text-align: center;
}
#login-page .card {
    padding: 0.75rem 2.5rem;
}

#login-form > div:first-child, #login-error {
 margin-bottom: 1.25rem;
}

#e2e-form > div:not(:last-child) {
margin-bottom: 1.25rem;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}
.app-subtitle {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.form {
    display: flex;
    flex-direction: column;
}
.dashboard-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dashboard-header {
    background: var(--gradient-header);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    flex-wrap: nowrap;
    gap: 0;
}
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}
.dashboard-title-clickable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
}
.desktop-header-button {
    display: flex;
}
.storage-usage {
    color: var(--text-color);
    font-size: 0.875rem;
    margin-right: 1rem;
    white-space: nowrap;
}
.main-content {
    flex: 1;
    padding: 1.5rem;
    box-sizing: border-box;
}
.content-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
.action-bar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.action-buttons-group {
    display: flex;
    gap: 1rem;
    width: auto;
    flex-wrap: nowrap;
}
.action-buttons-group .button {
    flex: none;
    min-width: auto;
}
.search-sort-group {
    position: relative;
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-end;
}
.search-input-wrapper {
    position: relative;
    width: 50%;
    max-width: 20rem;
}
.search-sort-group .select-field {
   flex: none;
   width: 60%;
   min-width: 100px;
   max-width: 200px;
   appearance: none;
   -webkit-appearance: none;
   -moz-appearance: none;
}
.app-footer {
    background: var(--gradient-header);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.2), 0 -2px 4px -2px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #a0a0a0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin-top: auto;
}
@media (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        justify-content: flex-start;
    }
    .desktop-header-button {
        display: none;
    }
    .main-content {
        padding: 1.5rem;
    }
    .content-container {
        padding: 0 1rem;
    }
    .action-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .action-buttons-group {
        width: 100%;
        flex-wrap: wrap;
    }
    .action-buttons-group .button {
        flex: 1;
        min-width: 120px;
    }
    .search-sort-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .search-input-wrapper {
        width: 100%;
        max-width: none;
    }
    .select-field {
        width: 60% !important;
    }
}
@media (min-width: 768px) {
    .file-table {
        table-layout: fixed;
    }
    .file-table th:nth-child(1),
    .file-table td:nth-child(1) {
        width: 1%;
    }
    .file-table th:nth-child(2),
    .file-table td:nth-child(2) {
        width: auto;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 0;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    .file-table th:nth-child(3),
    .file-table td:nth-child(3) {
        width: 10%;
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    .file-table th:nth-child(4),
    .file-table td:nth-child(4) {
        width: 15%;
        text-align: center;
        padding-left: 1rem;
        padding-right: 0.2rem;
        box-sizing: border-box;
    }
    .file-table th:nth-child(5),
    .file-table td:nth-child(5) {
        width: 30%;
        min-width: 160px;
        max-width: 200px;
        text-align: right;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--text-color);
    text-align: center;
}
.input-field::placeholder {
    color: #a0a0a0;
}
.input-field:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--focus-border);
}
.search-input {
    padding-left: 2.5rem;
}
.select-field {
    padding: 0.875rem 2.5rem;
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    width: 100%;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23f5f5f5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--text-color);
}
.select-field:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--focus-border);
}
.button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}
.button:hover {
    transform: scale(1.05);
}
.button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.button:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.primary-button {
    background: var(--gradient-btn);
    color: #ffffff;
}
.primary-button:hover {
    background: var(--gradient-btn-hover);
}
#login-button {
    margin-top: 0;
    margin-bottom: 2.5rem;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}
.danger-button {
    background: var(--danger-btn);
    color: #ffffff;
}
.danger-button:hover {
    background: var(--danger-btn-hover);
}
.secondary-button {
    background: linear-gradient(135deg, #555555, #444444);
    color: var(--text-color);
}
.secondary-button:hover {
    background: linear-gradient(135deg, #666666, #555555);
}
.tertiary-button {
    border: 1px solid var(--focus-border);
    color: var(--focus-border);
    background-color: transparent;
}
.tertiary-button:hover {
    background-color: rgba(0, 200, 255, 0.1);
}
.tertiary-button:focus {
    box-shadow: 0 0 0 2px var(--input-bg), 0 0 0 4px var(--focus-border);
}
.link-button {
    background: none;
    border: none;
    color: var(--focus-border);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
}
.link-button:disabled {
    color: #555;
    cursor: not-allowed;
    text-decoration: none;
}
.close-button {
    padding: 0.5rem;
    color: var(--text-color);
    border-radius: 9999px;
    transition: all 0.15s ease-in-out;
    background: none;
    border: none;
    cursor: pointer;
}
.close-button:hover {
    color: var(--focus-border);
    background-color: rgba(0, 200, 255, 0.1);
}
.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25em;
}

.file-list-card {
    background: linear-gradient(145deg, var(--card-bg-start) 0%, rgba(30, 30, 30, 0.6) 40%, rgba(40, 40, 40, 0.5) 70%, var(--card-bg-end) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    min-height: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
.file-list-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.file-list-status {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}
.file-list-status p {
    color: var(--text-color);
}
.file-list-container {
    overflow-x: auto;
    width: 100%;
}
.file-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.file-table thead {
    background-color: rgba(255, 255, 255, 0.05);
}
.table-header {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
}
.table-header.rounded-tl {
    border-top-left-radius: 0.75rem;
}
.table-header.rounded-tr {
    border-top-right-radius: 0.75rem;
}
.action-header {
    text-align: right;
}
.file-table-body {
    background-color: transparent;
}
.file-table-body tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease-in-out;
}
.file-table-body td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.file-table-body tr:last-child td {
    border-bottom: none;
}
.file-table-body td:first-child {
    font-weight: 500;
    color: var(--text-color);
}
.file-table-body td:not(:first-child) {
    color: var(--text-color);
}
.file-table-body .flex.items-center {
    display: flex;
    align-items: center;
}
.file-table-body .flex.items-center.cursor-pointer {
    cursor: pointer;
}
.file-table-body .space-x-2 {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}
.file-table-body .button {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}
.icon-button {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-color);
}
.bulk-action-bar {
    background-color: rgba(0, 200, 255, 0.1);
    border: 1px solid var(--focus-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.folder-browser ul {
    list-style-type: none;
    padding-left: 1rem;
}
.folder-browser li {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
}
.folder-browser li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.folder-browser li.selected {
    background-color: var(--focus-border);
    color: var(--gradient-bg);
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

#confirm-action-modal.modal-overlay {
    z-index: 1010;
}

.modal-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.7) 40%, rgba(40, 40, 40, 0.6) 70%, rgba(60, 60, 60, 0.5) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-width: 32rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-color);
    text-align: center;
}
#preview-modal .modal-card {
    max-width: 80vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    min-height: 8vh;
}
#preview-content-area {
    flex-grow: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    min-height: 65vh;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#preview-content-area.is-text-preview {
    align-items: flex-start;
}
#preview-content-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}
#preview-content-area embed {
    width: 100%;
    height: 100%;
    min-height: 65vh;
    border: none;
}
 #preview-content-area pre {
    white-space: pre-wrap;
    word-break: break-all;
    color: #b0b0b0;
    text-align: left;
    padding: 5rem 5rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
}
.modal-input {
    margin-bottom: 1rem;
}
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-direction: row-reverse;
}
.modal-actions.dialog-buttons {
    justify-content: flex-end;
    flex-direction: row-reverse;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-box-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.7) 40%, rgba(40, 40, 40, 0.6) 70%, rgba(60, 60, 60, 0.5) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 28rem;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    color: var(--text-color);
    border-left: 4px solid;
}
.message-box-info {
    border-color: #00c8ff;
}
.message-box-success {
    border-color: #4ade80;
}
.message-box-error {
    border-color: #ff4e50;
}
.message-box-card .flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.message-box-card p {
    font-size: 1.125rem;
    font-weight: 500;
    flex-grow: 1;
    margin-right: 1rem;
}
.message-box-card .flex.justify-end {
    margin-top: 1rem;
}
.message-box-card .button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    box-shadow: none;
}
.message-box-card .button:hover {
    transform: none;
}
#close-confirm-action-modal {
    display: none;
}
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    flex-wrap: wrap;
}
.breadcrumb span {
    margin: 0 0.25rem;
}
.breadcrumb a {
    color: var(--focus-border);
    text-decoration: none;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.breadcrumb a:hover {
    background-color: rgba(0, 200, 255, 0.1);
}
.breadcrumb .current-folder {
    color: var(--text-color);
    font-weight: 600;
}
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7) 0%, rgba(30, 30, 30, 0.6) 40%, rgba(40, 40, 40, 0.5) 70%, rgba(60, 60, 60, 0.4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}
.pagination-controls .button {
    margin: 0;
}
.page-info {
    color: var(--text-color);
    font-weight: 500;
}

#confirm-action-modal .modal-header, #confirm-action-modal .modal-content {
    justify-content: center;
    text-align: center;
    position: relative;
}

#confirm-action-modal .close-button {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
}

#confirm-action-modal .modal-actions.dialog-buttons {
    justify-content: center;
}

#e2e-actions-container > #e2e-submit-button {
    margin-bottom: 0.75rem;
}

#preview-content-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

#share-modal .modal-card, #edit-expiry-modal .modal-card {
    max-width: 40rem;
    text-align: left;
}

.share-section {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.share-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.3);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

#existing-links-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.existing-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.5rem;
}

.link-info {
    display: flex;
    flex-direction: column;
}

.link-info .link-id {
    font-size: 0.9rem;
    color: var(--text-color);
}

.link-info .link-expiry {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.link-info .link-expiry.expired {
    color: #ff4e50;
    font-weight: bold;
}

.link-actions {
    display: flex;
    gap: 0.25rem;
}

#existing-links-status {
    color: #a0a0a0;
    text-align: center;
    padding: 1rem;
}

.share-section {
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.share-section h4 {
    margin-bottom: 0.75rem;
}

#create-share-link-button {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
}

#folder-browser {
    max-height: 40vh;
    overflow-y: auto;
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.2);
}

#folder-browser ul {
    list-style-type: none;
    padding-left: 1.25rem;
}

#folder-browser > ul {
    padding-left: 0;
}

.tree-item-content {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tree-item-content:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tree-item-content.selected {
    background-color: var(--focus-border) !important;
    color: var(--gradient-bg);
    font-weight: 600;
}

.tree-item-toggle {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tree-item-toggle.expanded {
    transform: rotate(90deg);
}

.tree-item-toggle.hidden {
    visibility: hidden;
}

.tree-item-icon {
    margin: 0 0.5rem;
}

.tree-item-children {
    display: none;
}

.tree-item-children.expanded {
    display: block;
}

.d-flex {
    display: flex;
}
.d-block {
    display: block;
}
.flex-col {
    flex-direction: column;
}
.flex-row {
    flex-direction: row;
}
.flex-row-reverse {
    flex-direction: row-reverse;
}
.items-center {
    align-items: center;
}
.items-stretch {
    align-items: stretch;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.justify-flex-start {
    justify-content: flex-start;
}
.gap-1 {
    gap: 0.5rem;
}
.gap-2 {
    gap: 1rem;
}
.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.ml-auto {
    margin-left: auto;
}
.p-0 {
    padding: 0;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.w-auto {
    width: auto;
}
.pos-relative {
    position: relative;
}
.pos-absolute {
    position: absolute;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
}
.spinner-centered {
    margin: 0 auto;
    margin-bottom: 1rem;
}
.preview-modal-header {
    margin-bottom: 0;
}
.preview-filename {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
}
.preview-loading-status {
    display: none;
    text-align: center;
    color: #a0a0a0;
}
.preview-file-size {
    color: #a0a0a0;
    font-size: 0.875rem;
}
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trash-modal-card {
    max-width: 80rem;
    text-align: left;
}
.trash-list-container {
    max-height: 60vh;
    overflow-y: auto;
}
.share-file-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}
.share-file-size {
    font-size: 0.9rem;
    color: #a0a0a0;
}
.zoom-button {
    padding: 0.25rem 0.75rem;
    font-weight: bold;
}
.zoom-level-text {
    color: #a0a0a0;
    font-size: 0.875rem;
    min-width: 45px;
    text-align: center;
}
.file-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.link-details {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
    gap: 1rem;
}
.link-details.expired {
    opacity: 0.5;
}
.link-expiry {
    display: flex;
    align-items: center;
}
.link-clicks {
    font-size: 0.8rem;
    color: #a0a0a0;
}
.w-5 { width: 5%; }
.w-15 { width: 15%; }
.w-30 { width: 30%; }
.min-w-160 { min-width: 160px; }
.max-w-200 { max-width: 200px; }

#e2e-actions-container .button {
    margin: 0;
    height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

.link-id {
    display: flex;
    align-items: center;
}
