/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-tertiary: #55556a;
    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --success: #00cec9;
    --warning: #fdcb6e;
    --danger: #ff6b6b;
    --danger-hover: #ff5252;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

.text-danger {
    color: var(--danger) !important;
}

.full-width {
    width: 100%;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: var(--radius-xl);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Buttons --- */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--border-color-hover);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

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

.btn-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.btn-icon {
    background: transparent;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

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

.btn-spinner {
    animation: spin 1s linear infinite;
}

/* --- Login View --- */
#login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: radial-gradient(circle at top right, var(--bg-tertiary), var(--bg-primary) 70%);
}

.login-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideUp var(--transition-slow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 36px;
    color: var(--accent-secondary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .material-icons {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.input-group input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 48px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.input-group input:focus + .material-icons {
    color: var(--accent-primary);
}

#login-form button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 10px;
    text-align: left;
}

/* --- App View Layout --- */
#app-view {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100%;
    animation: fadeIn var(--transition-normal);
}

/* --- Sidebar --- */
#sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-bottom: none;
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-nav {
    flex: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-secondary);
}

.storage-info {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.storage-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-bar-container {
    height: 6px;
    background: var(--bg-card-hover);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width var(--transition-slow);
}

/* --- Main Content --- */
#main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* --- Topbar --- */
.topbar {
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-right: none;
    z-index: 5;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    gap: 8px;
}

.breadcrumb-item {
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: 20px;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    cursor: default;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 10px 16px 10px 40px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

.topbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.user-menu-container, .sort-dropdown-container {
    position: relative;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    color: var(--accent-secondary);
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    border-radius: var(--radius-md);
    padding: 8px;
    z-index: 100;
    animation: scaleIn var(--transition-fast);
    transform-origin: top right;
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

/* --- Action Bar --- */
.action-bar {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.actions-left, .actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- File Views (Grid & List) --- */
#file-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

/* Grid View */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-content: flex-start;
}

.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    animation: slideUp var(--transition-normal) backwards;
}

.file-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.file-card.selected {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.file-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    cursor: pointer;
    z-index: 2;
}

.file-card:hover .file-checkbox,
.file-card.selected .file-checkbox {
    opacity: 1;
}

.file-thumbnail {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.2);
    overflow: hidden;
}

.file-thumbnail .material-icons {
    font-size: 64px;
    color: var(--text-tertiary);
}

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

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

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

.file-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

/* List View */
.file-list {
    display: flex;
    flex-direction: column;
}

.file-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 120px 150px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.file-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px 150px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
    animation: fadeIn var(--transition-normal) backwards;
}

.file-row:hover {
    background: var(--bg-card-hover);
}

.file-row.selected {
    background: rgba(108, 92, 231, 0.1);
}

.file-row-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-row-icon .material-icons {
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    color: var(--text-secondary);
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* --- Upload Panel --- */
#upload-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

#upload-panel.minimized {
    transform: translateY(calc(100% - 50px));
}

.upload-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.upload-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.upload-progress-overall {
    height: 4px;
    background: var(--bg-card);
}

.animated-gradient {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #00cec9, #6c5ce7);
    background-size: 300% 100%;
    animation: gradientMove 3s linear infinite;
}

.upload-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.upload-item {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.upload-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.upload-stats {
    color: var(--text-secondary);
    font-size: 11px;
}

.upload-actions {
    display: flex;
    gap: 4px;
}

.upload-actions .btn-icon {
    width: 24px;
    height: 24px;
}

.upload-actions .btn-icon .material-icons {
    font-size: 16px;
}

/* --- Drag Overlay --- */
.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px dashed var(--accent-primary);
    border-radius: var(--radius-lg);
    margin: 16px;
}

.drag-content {
    text-align: center;
    color: var(--accent-secondary);
    animation: pulse 2s infinite;
}

.drag-icon {
    font-size: 100px;
    margin-bottom: 16px;
}

/* --- Modals & Overlays --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast);
}

.modal-content {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

/* Preview Modal Specifics */
.preview-layout {
    display: flex;
    width: 1200px;
    height: 800px;
}

.preview-main {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-sidebar {
    width: 320px;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.preview-sidebar h3 {
    margin-bottom: 24px;
    word-break: break-all;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 14px;
}

.preview-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#preview-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#preview-media-container video, #preview-media-container audio {
    width: 100%;
    max-height: 100%;
    outline: none;
}

/* --- Context Menu --- */
.context-menu {
    position: fixed;
    min-width: 200px;
    padding: 8px;
    border-radius: var(--radius-md);
    z-index: 300;
    display: flex;
    flex-direction: column;
    animation: scaleIn 100ms ease;
    transform-origin: top left;
}

.context-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}

.context-item:hover {
    background: var(--bg-card-hover);
}

.context-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}

/* --- Toasts --- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideUp var(--transition-normal);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent-primary); }

.toast-icon {
    font-size: 24px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--accent-primary); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- AI Search Bar --- */
.search-container {
    padding: 0 32px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 0 0 0 rgba(138, 92, 246, 0);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.15), 0 0 60px rgba(138, 92, 246, 0.05);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 22px;
    transition: color var(--transition-normal);
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--accent-primary);
}

#search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
}

#search-input::placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}

.search-clear {
    color: var(--text-secondary);
}

.search-suggestions {
    display: flex;
    gap: 8px;
    padding: 12px 8px 0;
    flex-wrap: wrap;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.search-chip:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.search-chip .material-icons {
    font-size: 16px;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    margin-bottom: 16px;
}

.search-results-header h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.search-results-header .btn-text {
    font-size: 13px;
    color: var(--accent-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(138, 92, 246, 0.15);
    color: var(--accent-secondary);
    font-size: 11px;
    margin-top: 4px;
}

.face-match-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-match-indicator .material-icons {
    font-size: 14px;
}

/* --- Responsive --- */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    #app-view {
        grid-template-columns: 1fr;
    }
    
    #sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg-secondary);
        transition: left var(--transition-normal);
        z-index: 200;
    }
    
    #sidebar.open {
        left: 0;
        box-shadow: var(--shadow-lg);
    }
    
    .mobile-only {
        display: inline-flex;
    }
    
    .search-box {
        display: none;
    }
    
    .preview-layout {
        flex-direction: column;
    }
    
    .preview-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    #upload-panel {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
    }
}
