/* Shared Core CSS - Variables & Resets */

:root {
    /* App Standard Dimensions */
    --tabbar-h: 80px;
    --header-h: 60px;

    /* Color Palette - Dark Mode Optimized */
    --app-bg: #0B1016;
    --app-surface: #151b26;
    --app-text-main: #ffffff;
    --app-text-muted: #94a3b8;
    --app-primary: #3b82f6;
    --app-primary-hover: #2563eb;
    --app-border: rgba(255, 255, 255, 0.08);

    /* Compatibility Aliases */
    --bg: var(--app-bg);
    --muted: var(--app-text-muted);
    --border: var(--app-border);

    /* Shared Assets */
    --loader-art: url('../icons/Launchscreen_RallyeApp_Desktop.png');

    /* UI Tokens */
    --map-control-size: 48px;
    --map-control-icon-size: 20px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);

    /* Viewport Fixes */
    --vh: 1vh;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--app-bg);
    color: var(--app-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

/* App Shell Components */
.app-shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Shared Button System (Base) */
.btn {
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .16s ease, background-color .18s ease;
}

.btn:active {
    transform: scale(.98);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-prim {
    background: var(--app-primary);
    color: #fff;
}

.btn-prim:hover {
    background: var(--app-primary-hover);
}
