/* ============================================================
   智能电力巡检系统平台 - 移动端公共样式表
   Smart Power Inspection IoT Platform - Mobile Common Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1890ff;
    --primary-dark: #096dd9;
    --primary-light: #e6f7ff;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --info: #13c2c2;

    --bg-main: #f5f5f5;
    --bg-white: #ffffff;
    --bg-card: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-white: #ffffff;

    --border-color: #eeeeee;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);

    --bottom-nav-height: 56px;
    --header-height: 48px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 22px;

    --transition-fast: 0.2s ease;
}

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

html, body {
    height: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-y: contain;
}

input, select, textarea, button { font-family: inherit; font-size: inherit; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ---------- App Layout ---------- */
.app-mobile {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

/* ---------- Header ---------- */
.mobile-header {
    height: var(--header-height);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding-top: var(--safe-top);
}

.mobile-header .header-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header .header-back {
    width: 36px; height: 36px;
    border: none; background: transparent;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
}
.mobile-header .header-back:active { background: #f0f0f0; }

.mobile-header .header-action {
    width: 36px; height: 36px;
    border: none; background: transparent;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
}
.mobile-header .header-action:active { background: #f0f0f0; }

/* ---------- Content Area ---------- */
.mobile-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 12px);
    scroll-behavior: smooth;
}

.mobile-content.no-tabs {
    padding-bottom: calc(var(--safe-bottom) + 12px);
}

/* ---------- Bottom Tab Bar ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: var(--bg-white);
    display: flex;
    border-top: 1px solid var(--border-color);
    z-index: 200;
    padding-bottom: var(--safe-bottom);
}

.bottom-nav .nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bottom-nav .nav-tab.active { color: var(--primary); }

.bottom-nav .nav-tab .tab-icon {
    font-size: 22px;
    line-height: 1;
}

.bottom-nav .nav-tab .tab-label {
    font-size: var(--font-size-xs);
    line-height: 1;
}

.bottom-nav .nav-tab .tab-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(18px);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Drawer Menu ---------- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #001529;
    z-index: 301;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
}

.drawer-menu.open { transform: translateX(0); }

.drawer-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-header .drawer-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.drawer-header .drawer-user-info {
    flex: 1;
}

.drawer-header .drawer-user-name {
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.drawer-header .drawer-user-role {
    color: rgba(255,255,255,0.45);
    font-size: var(--font-size-sm);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.drawer-nav .drawer-section {
    padding: 12px 16px 4px;
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-nav .drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-nav .drawer-item:active { background: rgba(255,255,255,0.08); }
.drawer-nav .drawer-item.active {
    color: #fff;
    background: var(--primary);
}

.drawer-nav .drawer-item .drawer-icon { font-size: 18px; width: 24px; text-align: center; }
.drawer-nav .drawer-item .drawer-label { font-size: var(--font-size-base); }

.drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.drawer-footer .drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.card-body { padding: 12px 16px; }
.card-body.no-padding { padding: 0; }

/* ---------- Stat Cards (Mobile) ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s;
}

.stat-card:active { transform: scale(0.97); }

.stat-card .stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}

.stat-icon.blue { background: #e6f7ff; }
.stat-icon.green { background: #f6ffed; }
.stat-icon.orange { background: #fff7e6; }
.stat-icon.red { background: #fff1f0; }
.stat-icon.cyan { background: #e6fffb; }
.stat-icon.purple { background: #f9f0ff; }

.stat-card .stat-value {
    font-size: 22px; font-weight: 700; line-height: 1.2;
}

.stat-card .stat-label {
    font-size: var(--font-size-xs); color: var(--text-muted);
}

/* ---------- List Items ---------- */
.list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
    gap: 12px;
}

.list-item:active { background: #f5f5f5; }
.list-item:last-child { border-bottom: none; }

.list-item .li-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    background: #f5f5f5;
}

.list-item .li-content { flex: 1; min-width: 0; }
.list-item .li-title { font-size: var(--font-size-base); font-weight: 500; }
.list-item .li-sub { font-size: var(--font-size-sm); color: var(--text-muted); margin-top: 2px; }
.list-item .li-extra { flex-shrink: 0; text-align: right; }
.list-item .li-arrow { color: #ccc; font-size: 16px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 40px;
    font-weight: 500;
}

.btn:active { transform: scale(0.96); opacity: 0.85; }
.btn:disabled { opacity: 0.4; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-default { background: #fff; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-text { background: transparent; color: var(--primary); padding: 4px 8px; min-height: auto; }

.btn-sm { padding: 4px 10px; font-size: var(--font-size-sm); min-height: 30px; }
.btn-lg { padding: 12px 24px; font-size: var(--font-size-lg); min-height: 48px; }
.btn-block { display: flex; width: 100%; }

.btn-group {
    display: flex; gap: 8px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 14px; }

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .required { color: var(--danger); }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-textarea { min-height: 80px; resize: vertical; }

.form-inline {
    display: flex; flex-direction: column; gap: 10px;
}

.form-inline .form-group {
    display: flex; align-items: center; gap: 8px; margin-bottom: 0;
}

.form-inline .form-label { margin-bottom: 0; white-space: nowrap; font-size: var(--font-size-sm); }
.form-inline .form-input, .form-inline .form-select { flex: 1; min-width: 0; }

.form-hint { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: 4px; }

/* ---------- Switch ---------- */
.switch {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}

.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch-slider {
    width: 46px; height: 26px;
    background: #d9d9d9;
    border-radius: 13px;
    position: relative;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.switch-slider::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff; border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::after { transform: translateX(20px); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 10px;
    font-size: var(--font-size-xs); font-weight: 500;
}

.badge-success { background: #f6ffed; color: var(--success); }
.badge-danger { background: #fff1f0; color: var(--danger); }
.badge-warning { background: #fff7e6; color: #d46b08; }
.badge-info { background: #e6fffb; color: var(--info); }
.badge-default { background: #f5f5f5; color: var(--text-muted); }

.badge-dot {
    width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}

.badge-dot.online { background: var(--success); }
.badge-dot.offline { background: var(--danger); }

/* ---------- Tables (Mobile) ---------- */
.data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.data-table th, .data-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-color);
}

.data-table th { background: #fafafa; font-weight: 500; color: var(--text-secondary); position: sticky; top: 0; }
.data-table tbody tr:active { background: #f5f5f5; }

/* ---------- Tabs ---------- */
.tabs-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar { display: none; }

.tab-item {
    padding: 10px 16px;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* ---------- Toast ---------- */
.toast-container {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
    width: calc(100% - 24px); max-width: 450px; pointer-events: none;
}

.toast {
    padding: 12px 16px; border-radius: var(--border-radius-sm);
    color: #fff; font-size: var(--font-size-base); text-align: center;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--primary); }

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

/* ---------- Bottom Sheet ---------- */
.sheet-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 500;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

.sheet-overlay.open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: 480px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 501;
    transition: transform 0.3s ease;
    max-height: 80vh;
    display: flex; flex-direction: column;
}

.bottom-sheet.open { transform: translateX(-50%) translateY(0); }

.sheet-handle {
    width: 36px; height: 4px;
    background: #d9d9d9; border-radius: 2px;
    margin: 8px auto;
    flex-shrink: 0;
}

.sheet-header {
    padding: 8px 16px 12px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.sheet-body { padding: 0 16px 24px; overflow-y: auto; flex: 1; }
.sheet-footer { padding: 12px 16px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Video Grid (Mobile) ---------- */
.video-grid {
    display: grid;
    gap: 2px;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-grid.cols-1 { grid-template-columns: 1fr; }
.video-grid.cols-4 { grid-template-columns: 1fr 1fr; }
.video-grid.cols-6 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.video-grid.cols-9 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }

.video-cell {
    background: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: var(--font-size-sm);
    position: relative; cursor: pointer;
    border: 1px solid #333;
}

.video-cell.active { border-color: var(--primary); border-width: 2px; }

.video-cell .cell-name {
    position: absolute; bottom: 2px; left: 2px;
    font-size: 10px; color: #aaa;
    background: rgba(0,0,0,0.6); padding: 1px 4px; border-radius: 2px;
}

/* ---------- PTZ D-Pad (Mobile) ---------- */
.ptz-dpad {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-template-rows: repeat(3, 56px);
    gap: 4px;
    justify-content: center;
}

.ptz-btn {
    width: 56px; height: 56px;
    border: 1px solid var(--border-color);
    background: #fff; border-radius: 12px;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.1s;
}

.ptz-btn:active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ptz-btn.empty { border: none; background: transparent; }

/* ---------- Progress Bar ---------- */
.progress-bar {
    height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin-top: 4px;
}

.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.progress-fill.normal { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* ---------- Empty State ---------- */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px; color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* ---------- Loading ---------- */
.loading { display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--text-muted); }

.spinner {
    width: 20px; height: 20px; border: 2px solid var(--border-color);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-right: 8px;
}

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

/* ---------- Quick Action Chips ---------- */
.chip-row {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 0;
    scrollbar-width: none; flex-wrap: wrap;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
    padding: 6px 14px; border-radius: 16px;
    font-size: var(--font-size-sm); white-space: nowrap;
    border: 1px solid var(--border-color); background: #fff;
    cursor: pointer; flex-shrink: 0; transition: all var(--transition-fast);
}

.chip:active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Search Bar ---------- */
.search-bar {
    display: flex; gap: 8px; padding: 8px 0; align-items: center;
}

.search-bar .search-input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--border-color);
    border-radius: 20px; font-size: var(--font-size-base);
    background: #f5f5f5; outline: none;
}

.search-bar .search-input:focus { background: #fff; border-color: var(--primary); }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); z-index: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

.modal {
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 360px;
    max-height: 70vh; display: flex; flex-direction: column;
}

.modal-header {
    padding: 16px; font-weight: 600; font-size: var(--font-size-lg);
    text-align: center; border-bottom: 1px solid var(--border-color);
}

.modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 12px 16px; display: flex; gap: 8px; border-top: 1px solid var(--border-color); }
.modal-footer .btn { flex: 1; }

/* ---------- Connection Bar ---------- */
.conn-bar {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 4px 12px; font-size: var(--font-size-xs);
    background: #fafafa; color: var(--text-secondary);
}

.conn-dot { width: 6px; height: 6px; border-radius: 50%; }
.conn-dot.online { background: var(--success); }
.conn-dot.offline { background: var(--danger); animation: blink 1s infinite; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 20px; }

.timeline::before {
    content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px;
    width: 2px; background: var(--border-color);
}

.timeline-item {
    position: relative; padding-bottom: 16px;
}

.timeline-item::before {
    content: ''; position: absolute; left: -18px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .tl-time { font-size: var(--font-size-xs); color: var(--text-muted); }
.timeline-item .tl-content { font-size: var(--font-size-sm); margin-top: 2px; }

/* ---------- Page Transitions ---------- */
.page-enter { animation: pageIn 0.25s ease; }

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

/* ---------- Misc ---------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--font-size-sm); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.gap-8 { gap: 8px; }
