/* Переменные темы (светлая/тёмная), сброс стилей, базовые элементы */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-light: rgba(30, 64, 175, 0.08);
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;

    --card-warning-bg: #fffbeb;
    --card-warning-border: #fde68a;
    --card-success-bg: #f0fdf4;
    --card-success-border: #a7f3d0;
    
    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --spring-transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.15);
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.92);
    --surface-solid: #1e293b;
    --surface-hover: #334155;
    --border: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;

    --card-warning-bg: rgba(245, 158, 11, 0.14);
    --card-warning-border: rgba(245, 158, 11, 0.35);
    --card-success-bg: rgba(16, 185, 129, 0.14);
    --card-success-border: rgba(16, 185, 129, 0.35);
    
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.t-row, .t-details, .info-item, .admin-comment, .cargo-extra-box, .col-route, .col-truck {
    user-select: text !important;
    -webkit-user-select: text !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 12px 100px 12px;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.page-transition {
    animation: pageSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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