/**
 * 个人云盘备忘录 - Apple 风格样式
 * Apple Design System Inspired
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Apple 系统颜色 */
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    --apple-purple: #AF52DE;
    --apple-indigo: #5856D6;
    --apple-pink: #FF2D55;
    --apple-teal: #5AC8FA;

    /* 背景色 */
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8E8ED;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-dark: rgba(0, 0, 0, 0.04);

    /* 文字颜色 */
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #AEAEB2;

    /* 边框和分割线 */
    --border-color: rgba(0, 0, 0, 0.08);
    --divider-color: rgba(0, 0, 0, 0.06);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* 布局 */
    --sidebar-width: 260px;
    --header-height: 64px;
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Login Page ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: loginBgPulse 8s ease-in-out infinite;
}

@keyframes loginBgPulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}

.login-container {
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: cardSlideIn 0.6s var(--transition-slow);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.login-card h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group input,
.input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.input-group input:focus,
.input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.remember-me {
    margin: 16px 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.input-group input::placeholder,
.input::placeholder {
    color: var(--text-tertiary);
}

.error-message {
    color: var(--apple-red);
    font-size: 14px;
    min-height: 21px;
    margin-top: 8px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--apple-blue);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-glass-dark);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    width: 100%;
    margin-top: 16px;
    color: var(--apple-red);
}

.btn-logout:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* ==================== Main App Layout ==================== */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--divider-color);
}

.logo {
    font-size: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-glass-dark);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--apple-blue);
    color: white;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--divider-color);
}

.storage-info {
    margin-bottom: 8px;
}

.storage-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.storage-used {
    height: 100%;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-purple));
    border-radius: 3px;
    transition: width var(--transition-slow);
}

.storage-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 0;
}

.view {
    display: none;
    animation: viewFadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    padding: 24px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.view-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-filter {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.tag-filter:focus {
    border-color: var(--apple-blue);
}

.content-body {
    padding: 24px 32px;
}

/* ==================== File Grid ==================== */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.file-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--apple-blue);
}

.file-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-tags-preview {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ==================== Memo List ==================== */
.memo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memo-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.memo-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--apple-blue);
}

.memo-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.memo-preview {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.memo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.memo-tags-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    color: white;
}

.tag-badge-sm {
    padding: 2px 8px;
    font-size: 10px;
}

/* ==================== Tag List ==================== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tag-card:hover {
    box-shadow: var(--shadow-md);
}

.tag-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tag-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.tag-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.tag-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: var(--apple-red);
}

/* ==================== Empty State ==================== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state.show {
    display: flex;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 17px;
}

.empty-hint {
    color: var(--text-tertiary) !important;
    font-size: 14px !important;
    margin-top: 4px;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalBgFadeIn 0.2s ease;
}

/* 标签选择弹窗需要更高的层级 */
#tagSelectModal,
#newTagModal {
    z-index: 1100;
}

.modal.show {
    display: flex;
}

@keyframes modalBgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.modal-sm {
    max-width: 380px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-glass-dark);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--divider-color);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Memo Modal */
.memo-title-input {
    width: 100%;
    padding: 12px 0;
    font-size: 24px;
    font-weight: 600;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.memo-title-input::placeholder {
    color: var(--text-tertiary);
}

.memo-content-input {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    font-family: var(--font-family);
}

.memo-content-input:focus {
    border-color: var(--apple-blue);
}

.memo-tags,
.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.add-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.1);
    border: 1px dashed var(--apple-blue);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-tag-btn:hover {
    background: rgba(0, 122, 255, 0.2);
}

/* File Modal */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    min-height: 200px;
}

.file-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
}

.file-preview-icon {
    font-size: 80px;
}

.file-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 14px;
}

.file-info-label {
    color: var(--text-secondary);
}

.file-info-value {
    color: var(--text-primary);
    word-break: break-all;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-secondary);
}

/* Tag Select Modal */
.tag-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag-select-item:hover {
    background: var(--bg-primary);
}

.tag-select-item.selected {
    background: rgba(0, 122, 255, 0.1);
}

.tag-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.tag-select-item.selected .tag-checkbox {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: white;
}

/* ==================== Loading ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Upload Button ==================== */
.upload-btn {
    cursor: pointer;
}

.upload-btn input[type="file"] {
    display: none;
}

/* ==================== Settings ==================== */
.settings-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.settings-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
}

.status-on {
    background: rgba(52, 199, 89, 0.1);
    color: var(--apple-green);
}

.status-off {
    background: rgba(255, 59, 48, 0.1);
    color: var(--apple-red);
}

/* ==================== Logs Table ==================== */
.logs-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}

.logs-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-tertiary);
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.logs-table tr:last-child td {
    border-bottom: none;
}

.log-event-success {
    color: var(--apple-green);
}

.log-event-failed {
    color: var(--apple-red);
}

.log-event-warning {
    color: var(--apple-orange);
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    .app {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid var(--border-color);
        flex-direction: row;
        padding: 0;
        z-index: 100;
    }

    .sidebar-header,
    .sidebar-footer {
        display: none;
    }

    .nav-menu {
        display: flex;
        justify-content: space-around;
        width: 100%;
        padding: 8px;
    }

    .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 16px;
        margin: 0;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-text {
        font-size: 11px;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }

    .view-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .view-header h1 {
        font-size: 24px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .content-body {
        padding: 16px 20px;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .file-card {
        padding: 16px;
    }

    .file-icon {
        font-size: 36px;
    }

    .memo-card {
        padding: 16px;
    }

    .modal-content {
        max-height: 85vh;
        border-radius: var(--radius-lg);
    }

    .login-card {
        padding: 32px 24px;
    }
}

/* ==================== Utilities ==================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==================== Selection ==================== */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-primary);
}