﻿body {

    /* ── Timeline Bar ─────────────────────────────────── */
    .timeline-bar

{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(780px, 88vw);
    z-index: 1100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 10px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Roboto', monospace;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: slideUpIn 0.35s cubic-bezier(.22,1,.36,1);
}

@@keyframes slideUpIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(0,0,0,0.9);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-badge {
    font-size: 10px;
    background: rgba(183,41,30,0.2);
    border: 1px solid rgba(183,41,30,0.45);
    color: #ff9488;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.timeline-range-label {
    font-size: 11px;
    color: rgba(0,0,0,0.5);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

    .timeline-range-label span {
        color: rgba(0,0,0,0.5);
        font-weight: 700;
    }

/* Dual range slider */
.range-track-wrapper {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    pointer-events: none;
}

.range-fill {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #252887, #4AA5E1);
    border-radius: 2px;
    pointer-events: none;
    transition: left 0.04s, width 0.04s;
}

.range-track-wrapper input[type=range] {
    position: absolute;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    height: 22px;
}

    .range-track-wrapper input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        pointer-events: all;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255,255,255,0.95);
        border: 2px solid #252887;
        cursor: grab;
        box-shadow: 0 1px 6px rgba(0,0,0,0.35);
        transition: transform 0.12s, box-shadow 0.12s;
    }

        .range-track-wrapper input[type=range]::-webkit-slider-thumb:active {
            cursor: grabbing;
            transform: scale(1.3);
            box-shadow: 0 0 0 5px rgba(183,41,30,0.25);
        }

    .range-track-wrapper input[type=range]::-moz-range-thumb {
        pointer-events: all;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,0.95);
        border: 2px solid #252887;
        cursor: grab;
        box-shadow: 0 1px 6px rgba(0,0,0,0.35);
    }

.timeline-reset-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(0,0,0,0.45);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

    .timeline-reset-btn:hover {
        border-color: rgba(183,41,30,0.6);
        color: #ff9488;
        background: rgba(183,41,30,0.12);
    }





.hero-background {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%), url('anabig3.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    padding-top: clamp(4vh, 8vh, 10vh);
    position: relative;
    filter: brightness(1) contrast(1.1);
}

.demo-disclaimer-bar {
    background-color: #ff9800; /* Warning Orange */
    color: white;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2000; /* Above the Appbar */
    font-family: sans-serif;
}

    .demo-disclaimer-bar .mud-typography {
        flex-grow: 1;
        text-align: center;
    }

.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.0); /* Dim the background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above everything else */
    //backdrop-filter: blur(4px); /* Modern blur effect */
}

.disclaimer-modal {
    max-width: 450px;
    width: 90%;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    background: rgba(30, 30, 30, 0.9) !important; /* Dark theme compatible */
    color: black;
    border-radius: 12px;
}

/* Adjust Appbar position if disclaimer is present */
.glass-appbar {
    top: inherit;
}

@@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(229, 62, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

@@keyframes atmosphere-fade-in {
    0% {
        opacity: 0;
        transform: scale(1.5);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.tracking-card {
    background: rgba(255, 255, 255, 0.15);
    /*      backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

box-shadow:
0 40px 100px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.2),
0 0 60px rgba(229, 62, 62, 0.15);
position: relative;
z-index: 10;
transform-style: preserve-3d;
}

.tracking-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    border-radius: 22px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
}

.input-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center; /* Align button and input vertically */
}

    .input-container input {
        flex: 1; /* Input takes up available space */
    }

/* Mobile Styles (Vertical) */
@media (max-width: 767px) {
    .input-container {
        flex-direction: column;
        align-items: stretch; /* Buttons/Inputs go full-width */
    }
}

.tracking-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    backdrop-filter: blur(10px);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 400;
    transition: all 0.3s ease;
}

    .tracking-input::placeholder {
        color: rgba(0, 0, 0, 0.6);
    }

    .tracking-input:focus {
        outline: none;
        border-color: rgba(78, 173, 234, 0.4);
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 20px rgba(28, 30, 135, 0.2);
    }

.track-button {
    background: linear-gradient(135deg, rgba(29, 62, 161, 0.9) 0%, rgba(29, 62, 161, 1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    min-height: 48px;

    box-sizing: border-box;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(78, 173, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .track-button::before {
        content: '';
        position: absolute !important;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .track-button:hover::before {
        left: 100%;
    }

    .track-button:hover,
    .track-button:active {
        background: linear-gradient(135deg, rgba(78, 173, 234, 0.9) 0%, rgba(78, 173, 234, 1) 100%);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(78, 173, 234, 0.4);
    }

.pulse-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(78, 173, 234, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}


/* Tablet and larger screens */
@@media (min-width: 768px) {
    .hero-background {
        padding: 2rem;
        padding-top: 8vh;
    }

    .tracking-card {
        padding: 2rem;
        width: 90%;
    }

    .input-container {
        flex-direction: row; /* Side by side on larger screens */
        align-items: center;
    }

    .track-button {
        width: auto;
        flex-shrink: 0;
    }
}



/* Very small screens */
@@media (max-width: 480px) {
    .hero-background {
        padding: 1rem 0.5rem;
        padding-top: 2vh;
    }

    .tracking-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .tracking-input,
    .track-button {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
    }
}

/* Handle landscape orientation on mobile */
@@media (max-height: 500px) and (orientation: landscape) {
    .hero-background {
        min-height: 100vh;
        padding-top: 2vh;
    }
}

/* Reduce motion for accessibility */
@@media (prefers-reduced-motion: reduce) {
    .hero-background {
        animation: none;
    }

        .hero-background::before {
            animation: none;
            opacity: 0.6;
            transform: scale(1);
        }

    .track-button:hover {
        transform: none;
    }
}


}
