:root {
    /* Premium Trust Palette - Refined */
    --primary-color: #2563eb;
    /* Core Blue */
    --primary-hover: #1d4ed8;
    /* Deeper Blue */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    /* Modern Gradient */

    --secondary-color: #475569;
    /* Slate 600 - Balanced Gray */
    --secondary-bg: #f1f5f9;
    /* Slate 100 - Soft Bg */

    --accent-color: #ef4444;
    /* Red - Warning */
    --danger-color: #ef4444;
    /* Alias for compatibility */
    --success-color: #059669;
    /* Emerald 600 - Stronger Success */

    --background-bg: #f8fafc;
    --card-bg: #ffffff;

    --text-main: #0f172a;
    /* Slate 900 - Sharp */
    --text-muted: #64748b;
    /* Slate 500 - Soft */

    --border-radius: 24px;
    /* More modern, rounder corners */
    --radius: 16px;
    /* Standard radius */
    --radius-sm: 12px;

    /* Super Soft Shadows (Apple/Stripe style) */
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    /* Main Float */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    /* Flat Card */
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Snappy but smooth */
}

/* Dark Mode Theme */
body.dark-mode {
    --background-bg: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 300 */

    --secondary-bg: #334155;
    /* Slate 700 */

    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

    /* Adjust gradients for dark mode to be more subtle or vibrant */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* Remove white background glow, replace with dark subtle glow */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 30%);
}

/* Specific overrides for Dark Mode */
body.dark-mode .logo .text-main {
    fill: #f8fafc;
    /* Make text white in dark mode */
}

body.dark-mode .logo .shield-body {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.6));
    /* Neon glow for shield */
}

body.dark-mode .logo-base {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    /* Standard shadow */
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #020617;
    /* Very dark slate */
    border-color: #334155;
    color: #fff;
}

body.dark-mode input:focus {
    background: #0f172a;
    border-color: #3b82f6;
}

body.dark-mode .feature-item {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-ghost {
    color: #cbd5e1;
}

body.dark-mode .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global utility: hide elements */
.hidden {
    display: none !important;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background-bg);
    /* Subtle Top Glow */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.02) 0%, transparent 30%);
    background-attachment: fixed;

    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile browser friendly */
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll/warping */
}

.main-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    flex: 1;
    /* Pushes footer to bottom */
    padding: 20px;
    /* Content padding moved here */
}



/* Header Areas */
header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header Layout - Centered Logo */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 14px 20px;
    position: relative;
    width: 100%;
    min-height: 80px;
    z-index: 20;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Flat Design - No Box */
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;

    height: auto;
    width: auto;
    opacity: 1;
    transition: transform 0.2s ease;

    /* Animation Container: Removed, handled by wrapper */
}

/* Dual Layer Logo Structure */
.logo-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
    /* Kill ghost space */
    font-size: 0;
    /* Kill ghost space */
}

.logo-base {
    display: block;
    /* Base is the bright normal logo */
}


.logo:hover {
    transform: scale(1.02);
    background: transparent;
    box-shadow: none;
}

/* Inline SVG Styling */
.logo svg {
    width: auto;
    height: auto;
    max-height: 62px;
    max-width: 100%;

    display: block;
    overflow: visible;
    /* Allow glow/shadows to spill */
    transition: transform 0.2s ease;
}

/* Eye Blink Animation */
@keyframes blinkEyes {

    0%,
    48%,
    52%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}


.eye-group {
    transform-origin: center center;
    transform-box: fill-box;
    animation: blinkEyes 4.5s infinite;
    animation-delay: 2s;
}

/* Wheel Spin on Hover */
@keyframes spinWheel {
    to {
        transform: rotate(360deg);
    }
}

.logo:hover .scooter-wheel {
    transform-origin: center;
    transform-box: fill-box;
    animation: spinWheel 0.6s cubic-bezier(0.3, 0, 0.2, 1);
}

.logo:hover .shield-group {
    transform: translate(10px, 8px) scale(1.05);
    /* Subtle pop */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shield-group {
    transition: transform 0.3s ease;
}

/* Header Controls (Theme Toggle + Login) */
.header-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 9001 !important;
    /* Ensure above Ticker (8000) */
}

/* Update Login Button to fit in controls */
#loginBtn {
    /* Remove absolute positioning as it's now in .header-controls */
    position: static;
    transform: none;

    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    min-height: 44px;
    /* Slightly smaller to match toggle */

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

#loginBtn:hover {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
#themeToggle {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    transition: all 0.2s;
}

#themeToggle:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
}

body.dark-mode #themeToggle {
    background: rgba(30, 41, 59, 0.8);
    color: #ffd700;
    /* Sun color */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Scanner Button inside Input */
.scan-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 0 12px 12px 0;
    /* Right side rounded */
    animation: pulse-soft 2s infinite;
    z-index: 10;
}

@keyframes pulse-soft {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        color: var(--primary-color);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}



.scan-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}


h1,
h2,
h3 {
    letter-spacing: -0.012em;
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
    /* Slightly larger for impact */
    font-weight: 800;
    margin-bottom: 12px;
    background: -webkit-linear-gradient(45deg, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

#heroContent {
    text-align: center;
}

/* Modern Inputs - The "Cockpit" Feel */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;

    /* Bigger click area */
    padding: 0 20px;
    height: 56px;
    /* Taller inputs = More Premium */

    border: 2px solid transparent;
    /* Prepare for gradient border or focus */
    background: #f1f5f9;
    /* Slightly gray bg initially */
    border-radius: 16px;
    /* Smooth corners */

    font-size: 1.05rem;
    /* Larger Text */
    font-weight: 500;
    color: var(--text-main);

    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Inner depth */
}

input:hover {
    background: #e2e8f0;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Main Search Button */
button {
    background: var(--primary-gradient);
    color: white;
    border: none;

    /* Matches Input Height */
    height: 56px;
    padding: 0 32px;

    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;

    cursor: pointer;
    transition: var(--transition);

    /* Inner light border for 3D pop */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 20px -10px rgba(37, 99, 235, 0.5);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 15px 30px -10px rgba(37, 99, 235, 0.6);
    filter: brightness(1.05);
    /* Proper hover logic for gradients */
}

button:active {
    transform: scale(0.98);
}

/* Clean Minimal Cards */
.card,
.search-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 32px;
    /* High Airiness */
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Glass subtle border */
    position: relative;
    overflow: visible;
    /* For shadows to spill */
}

.search-card {
    overflow: hidden;
    /* Clip the gradient stripe */
    position: relative;
    /* Ensure positioning context */
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #ef4444);
    z-index: 10;
}

/* Restored Utilities */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 15px;
    font-size: 0.95rem;
    height: auto;
    /* Reset height override */
    border: none;
    font-weight: 500;
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
    filter: none;
}

.btn-ghost.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--accent-color);
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-full {
    width: 100%;
}

/* Subtle Pulse for Primary CTA if needed */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

input.error {
    border-color: var(--accent-color);
    background-color: #fef2f2;
}

.error-msg {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Result Visualization */
.result-container {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid #f3f4f6;
}

/* Modals with nice backdrop */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}



.modal-content {
    background: white;
    padding: 45px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 440px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-main);
}

/* File Upload - Dotted Area */
.file-upload-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.file-input-wrapper {
    flex: 1;
    min-width: 140px;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
}

.file-label:hover {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
}

.file-label .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #9ca3af;
}

.file-label:hover .icon {
    color: var(--primary-color);
}

/* Mobile Friendly Scan Button */
.scan-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 8px;
    cursor: pointer;
}



/* Mobile Friendly Scan Button */
@media (max-width: 768px) {
    .scan-btn {
        display: block;
        right: 8px;
    }

    #serialInput {
        font-size: 0.95rem;
    }

    .serial-input-field {
        padding-right: 0;
    }

    /* Mobile Header Layout: Logo | Ticker | Controls */

    .header-top {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 5px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        min-height: 70px;
        gap: 8px;
        overflow: hidden !important;
    }

    /* Mobile Layout: Center Logo, Corner Login */

    .logo {
        position: static !important;
        transform: none !important;
        display: inline-flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 60px) !important;
        margin: 0 !important;
        z-index: 50;
    }

    /* Reduce main container padding to gain width */
    .main-container {
        padding: 12px !important;
    }

    /* Fix created language button margins */
    .header-controls .lang-switch-btn {
        margin-right: 0 !important;
        display: inline-flex !important;
    }

    .logo svg {
        height: auto !important;
        width: auto !important;
        max-height: 55px !important;
        max-width: 55vw !important;
        display: block;
    }

    /* 2. Controls: flex-end, no overflow */
    .header-controls {
        position: static !important;
        transform: none !important;

        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        gap: 8px;

        margin: 0 !important;
        width: auto !important;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        z-index: 100;
        white-space: nowrap;
    }

    /* 3. ICON ONLY LOGIN (Hide Text) */
    .header-controls #loginBtn span {
        display: none !important;
    }

    .header-controls #loginBtn i {
        font-size: 1.3rem;
        /* Bigger icon for touch */
    }

    /* Compact icon-only styling for login button on mobile */
    .header-controls #loginBtn {
        padding: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-height: unset !important;
        border-radius: 50% !important;
        background: rgba(37, 99, 235, 0.1) !important;
        border: 1px solid rgba(37, 99, 235, 0.2) !important;
        box-shadow: none !important;
        flex-shrink: 0;
    }
}

/* Duplicate Mobile Login styles removed */

/* ── Mobile: Dashboard & Card sizing fix ── */
@media (max-width: 768px) {

    /* Reduce card padding significantly on mobile */
    .card,
    .search-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }

    /* Ensure all containers respect viewport width */
    .main-container,
    .card,
    .search-card,
    .scooter-card,
    #userScooterList,
    #dashboardView,
    #profileView {
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Dashboard header: stack on very small screens */
    #dashboardView .card > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Scooter card action buttons: full width on mobile */
    .scooter-card [style*="display:flex"][style*="flex-wrap:wrap"] {
        width: 100%;
        justify-content: flex-start;
    }

    /* Mini map: slightly less height on mobile */
    [id^="minimap-"] {
        height: 160px !important;
    }

    /* Scan log table: prevent column overflow */
    [id^="scan-log-"] table {
        font-size: 0.78rem;
    }

    [id^="scan-log-"] td,
    [id^="scan-log-"] th {
        padding: 6px 6px !important;
    }
}


@media (max-width: 380px) {
    .card,
    .search-card {
        padding: 12px !important;
    }

    #serialInput {
        font-size: 0.85rem;
        padding-right: 45px !important;
    }

    #serialInput::placeholder {
        font-size: 0.8rem;
        letter-spacing: -0.5px;
    }
}

/* Toasts */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1f2937;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    font-weight: 500;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--secondary-color);
}

.toast.error {
    background: var(--accent-color);
}

.toast.info {
    background: #1f2937;
}



/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-results.visible {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.autocomplete-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 2px;
}

.autocomplete-item .secondary-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* File Upload Status */
.file-status {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--text-muted);
}

.file-label.has-file {
    border-color: var(--secondary-color);
    background: #f0fdf4;
}

.file-label.has-file .file-status {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Text Utilities */
.text-small {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text-muted);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Status Indicators */
.status-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.status-ok {
    border-left: 5px solid var(--secondary-color);
}

.status-stolen {
    border-left: 5px solid var(--accent-color);
}

.status-unknown {
    border-left: 5px solid #95a5a6;
}

/* Admin Dashboard Styling */

/* Global Overflow Containment – verhindert horizontales Scrollen */
#adminView {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}
#adminView .card {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
#adminView,
#adminView * {
    max-width: 100%;
    box-sizing: border-box;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Groups the badge + action buttons on the right side */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Logout button in admin header gets a red accent on hover */
.admin-logout-btn:hover {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 30%), 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Premium hover lift */
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: -0.05em;
    background: -webkit-linear-gradient(45deg, var(--text-main), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Segmented Tabs */
.admin-tabs {
    display: flex;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
}

.admin-tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    justify-content: center;
}

.admin-tab-btn:hover {
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

.admin-tab-btn.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Professional Tables */
.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

/* Report Header Styling */
.report-header-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #dbeafe;
    position: relative;
    overflow: hidden;
}

.report-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.report-icon-large {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(239, 68, 68, 0.2));
}

.report-header-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.report-header-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}


/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    /* Push to bottom if flex fails? No, flex:1 on main is better, but margin-top: auto helps too */
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    /* Safe area for iPhone */
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 100%;
    flex-shrink: 0;
}

footer a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: inline-block;
    padding: 5px;
}

footer a:hover {
    color: var(--primary-color);
}

/* Utilities & Animations */
.hidden {
    display: none !important;
}

/* Focus Mode (Cinema Effect) */
body.focus-mode .features-grid,
body.focus-mode .card:not(.search-card) {
    opacity: 0.15;
    filter: grayscale(80%);
    transition: opacity 0.4s ease, filter 0.4s ease;
    pointer-events: none;
}

/* Ensure Result is above everything */
.result-container {
    transition: all 0.3s ease;
    /* ... existing styles ... */
    position: relative;
    z-index: 10;
    pointer-events: auto !important; /* Immer klickbar, auch innerhalb gedimmter Cards */
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popInCheck {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.status-icon.animate-pop {
    animation: popInCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        /* Remove padding to allow full width footer */
    }

    .main-container {
        width: 100%;
        padding: 15px;
        /* Add mobile padding here instead */
    }

    h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .logo {
        height: auto !important;
        max-width: 220px; /* Sensible max width for mobile */
    }

    .logo svg, .logo img {
        height: auto !important;
        max-height: 48px !important;
        width: 100% !important;
        display: block;
    }

    /* Support for the logo wrapper and overlay icons */
    .logo-wrapper {
        width: 100%;
        max-width: 220px;
    }

    /* Stack header and center controls on small mobile */
    @media (max-width: 600px) {
        .header-top {
            flex-direction: column;
            gap: 15px;
            min-height: auto;
            margin-bottom: 2rem;
            padding-top: 30px;
        }

        .header-controls {
            position: static;
            transform: none;
            justify-content: center;
            width: 100%;
            margin-top: 10px;
        }

        .logo {
             max-width: 180px;
        }
    }

    /* Compact Search Card */
    .search-card {
        padding: 25px 20px;
    }

    .feature-item h3 {
        font-size: 0.85rem !important;
    }

    .feature-item p {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    /* Only target the direct button (Check), not the scan button inside the wrapper */
    .input-group>button {
        width: 100% !important;
    }

    button {
        width: auto;
        /* Let it shrink to content */
        padding: 14px 20px;
        /* Compact padding */
    }

    /* Mobile Modal Fixes */
    .modal-content {
        padding: 25px;
        width: 95%;
    }

    /* Stack features in report view */
    #reportView .features-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 5px;
        /* Scrollbar space */
    }

    #reportView .feature-item {
        min-width: 90px;
        flex-shrink: 0;
    }

    .file-upload-container {
        flex-direction: column;
    }
}

/* Features Grid - Premium Minimalist */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.feature-item {
    padding: 15px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subtle Hover Effect */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Icon Styling - Gradient Fill & Glow */
.feature-icon-wrapper {
    width: auto;
    height: auto;
    background: transparent;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;

    /* Gradient Icon Text */
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.15));
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.25));
}

.feature-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Mobile Tweaks Feature Grid */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        align-items: center;
    }

    .feature-icon-wrapper {
        font-size: 1.8rem;
        margin-bottom: 0;
        margin-right: 15px;
    }

    footer {
        margin-bottom: 120px !important;
        /* Force footer up to clear sticky bar */
    }

    .combined-input-wrapper input {
        font-size: 0.85rem !important;
        /* Smaller text to fit placeholder */
        padding-left: 15px;
        /* Slightly less padding */
    }
}

/* New Structural Fix for Input Overlap */
.combined-input-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    background-color: #f1f5f9;
    /* Explicit for safekeeping */
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.2s;
    width: 100%;
    position: relative;
    height: 56px;
    /* Match standard input height */
    overflow: hidden;
    /* Ensure rounded corners clip children */
}

.combined-input-wrapper:focus-within {
    background: #fff;
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.combined-input-wrapper input {
    flex: 1;
    /* Take remaining space */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 100%;
    padding-left: 20px;
    padding-right: 10px !important;
    /* Small gap to button */
    outline: none;
    width: auto;
    /* Let flex handle width */
    margin: 0;
    /* potential fix for safari */
}

.combined-input-wrapper .scan-btn {
    position: static !important;      /* kein absolute – bleibt im Flex-Flow */
    transform: none !important;       /* globale transforms deaktivieren */
    animation: scan-btn-pulse 2s infinite; /* eigene Animation ohne translateY */
    background: transparent;
    margin-right: 5px;
    flex-shrink: 0;
    height: 100%;
    width: 50px;                      /* großes Touch-Ziel */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 0;
    z-index: 5;
    box-shadow: none !important;
}

/* Eigene Animation: nur scale, kein translateY */
@keyframes scan-btn-pulse {
    0%   { transform: scale(1); color: var(--text-muted); }
    50%  { transform: scale(1.15); color: var(--primary-color); }
    100% { transform: scale(1); color: var(--text-muted); }
}

.combined-input-wrapper .scan-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    animation: none;       /* Hover stoppt den Pulse */
    transform: scale(1.1) !important;
}

/* Dark Mode Overrides */
body.dark-mode .combined-input-wrapper {
    background-color: #020617;
    /* Matches dark input bg */
    border-color: #334155;
}

body.dark-mode .combined-input-wrapper input {
    color: #fff;
}

body.dark-mode .combined-input-wrapper:focus-within {
    background-color: #0f172a;
    border-color: #3b82f6;
}

/* Fix Privacy Banner Position on Mobile */
@media (max-width: 768px) {
    #privacyBanner {
        bottom: 130px !important;
    }
}

/* Mock Alert Visualization */
.mock-alert-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 7px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    animation: fadeInDown 0.5s ease-out;
}

.mock-alert-badge {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.mock-alert-text {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Traffic Light Container */
.traffic-light-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.tl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.tl-item.separator {
    color: #e2e8f0;
    font-weight: 300;
}

.tl-item i {
    font-size: 1.2rem;
}

/* Dual Action Area */
.dual-action-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-bg);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.action-btn {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    color: var(--danger-color) !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Dark Mode Adjustments */
body.dark-mode .dual-action-area {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fca5a5 !important;
    border-color: transparent !important;
}

/* ===========================
   ADMIN MOBILE RESPONSIVE
   =========================== */
@media (max-width: 768px) {

    /* Überlauf verhindern – Root-Fix */
    #adminView {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #adminView .card {
        padding: 14px 12px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Stat-Kacheln: 3 nebeneinander, kleiner */
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }

    /* Tabs: 4 Buttons in einer Reihe, sehr kompakt */
    .admin-tabs {
        gap: 0;
        padding: 3px;
        border-radius: 12px;
        margin-bottom: 16px;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-tab-btn {
        flex: 1;
        padding: 8px 2px;
        font-size: 0.7rem;
        gap: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .admin-tab-btn i {
        font-size: 0.95rem;
        display: block;
    }

    /* Auf sehr kleinen Screens: nur Icon + sehr kurzes Label */
    @media (max-width: 400px) {
        .admin-tab-btn span,
        .admin-tab-btn {
            font-size: 0;
        }
        .admin-tab-btn i {
            font-size: 1.1rem;
            display: block;
        }
        .admin-tab-btn::after {
            display: none;
        }
    }

    /* Admin Header Row */
    .admin-header-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Tabellen: horizontal scrollbar innerhalb Wrapper */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        max-width: 100%;
    }

    table {
        min-width: 480px;
        font-size: 0.78rem;
    }

    /* Suchfelder */
    #adminSearchScooter,
    #adminSearchUser,
    #adminSearchLog {
        font-size: 0.88rem;
        height: 42px;
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Log-Section */
    #adminLogSection > div:first-child {
        flex-direction: column;
        gap: 10px;
    }

    #adminLogSection > div:first-child input {
        width: 100%;
        margin-right: 0;
    }

    /* Badge */
    .admin-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    /* Admin-Header Actions */
    .admin-header-actions {
        gap: 6px;
    }

    #adminHomeBtn,
    #adminLogoutBtn {
        padding: 7px 10px !important;
        font-size: 0.8rem;
        min-height: unset !important;
        height: auto !important;
    }

    /* Auf sehr kleinen Screens: nur Icon */
    @media (max-width: 420px) {
        .admin-btn-label {
            display: none;
        }

        #adminHomeBtn,
        #adminLogoutBtn {
            padding: 8px !important;
            border-radius: 50% !important;
            width: 36px !important;
            height: 36px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
    }

    /* Analytics Section Mobile */
    #adminAnalyticsSection {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* KPI-Karten: 2 nebeneinander auf Mobile */
    #adminAnalyticsSection > div[style*="grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Device + Top-Pages: übereinander statt nebeneinander */
    #adminAnalyticsSection > div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Chart-Höhen auf Mobile reduzieren */
    #analyticsViewsChart  { max-height: 160px; }
    #analyticsStollenChart { max-height: 120px; }
    #analyticsDeviceChart  { max-height: 100px; }
}


/* ======================================================
   SUCHFELD – IMMER SICHTBAR WENN STARTSEITE AKTIV
   Überschreibt alle JS-Inline-Styles zuverlässig
   ====================================================== */
#searchView:not(.hidden) .search-card .input-group {
    display: flex !important;
}

@media (max-width: 768px) {
    #searchView:not(.hidden) .search-card .input-group {
        display: flex !important;
        position: fixed !important;
    }
}

/* ── Dashboard User Area ── */

/* Avatar circle with initial */
.dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    letter-spacing: 0;
}

/* Dashboard header row */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-greeting {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
}

.dash-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Logout button accent */
.dash-logout-btn {
    color: #ef4444 !important;
}
.dash-logout-btn:hover {
    background: #fff5f5 !important;
    border-color: #fca5a5 !important;
}

/* Stats bar */
.dash-stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.dash-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.dash-stat-stolen { color: #ef4444; }
.dash-stat-scans  { color: #2563eb; }

.dash-stat-label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-stat-divider {
    width: 1px;
    height: 36px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 4px;
}

/* Profile sections */
.profile-section {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
}

.profile-section-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-section-title i {
    font-size: 1rem;
    color: #2563eb;
}

/* Empty state for scooter list */
.dash-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.dash-empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

.dash-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* Dark mode */
body.dark-mode .dash-header { border-color: #1e293b; }
body.dark-mode .dash-stats-bar { background: #0f172a; border-color: #1e293b; }
body.dark-mode .dash-stat-value { color: #f1f5f9; }
body.dark-mode .dash-stat-divider { background: #1e293b; }
body.dark-mode .profile-section { background: #0f172a; border-color: #1e293b; }
body.dark-mode .dash-logout-btn:hover { background: rgba(239,68,68,0.1) !important; }
