:root {
    /* WinUI 3 Light Theme Colors */
    --primary-color: #f2b964;
    --primary-dark: #e0a855;
    --text-primary: #202020;
    --text-secondary: #5e5e5e;
    --background-default: #ffffff;
    --background-alt: #f5f5f5;
    --surface-default: #ffffff;
    --surface-alt: #f5f5f5;
    --border-default: #e1e1e1;
    --border-focus: #f2b964;
    --hover-color: rgba(242, 185, 100, 0.08);
    --pressed-color: rgba(242, 185, 100, 0.12);
    --selected-color: rgba(242, 185, 100, 0.16);
    --mica-background: rgba(255, 255, 255, 0.7);
    --mica-border: rgba(255, 255, 255, 0.1);
    
    /* WinUI 3 Elevation */
    --elevation-2: 0 2px 4px rgba(0, 0, 0, 0.14);
    --elevation-4: 0 4px 8px rgba(0, 0, 0, 0.14);
    --elevation-8: 0 8px 16px rgba(0, 0, 0, 0.14);
    --elevation-16: 0 16px 24px rgba(0, 0, 0, 0.14);
    
    /* WinUI 3 Animation */
    --animation-fast: 0.1s;
    --animation-normal: 0.167s;
    --animation-slow: 0.3s;
    --easing-default: cubic-bezier(0.1, 0.9, 0.2, 1);
    --easing-accelerate: cubic-bezier(0.1, 0.9, 0.2, 1);
    --easing-decelerate: cubic-bezier(0.1, 0.9, 0.2, 1);
}

[data-theme="dark"] {
    /* WinUI 3 Dark Theme Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --background-default: #202020;
    --background-alt: #2d2d2d;
    --surface-default: #2d2d2d;
    --surface-alt: #363636;
    --border-default: #404040;
    --border-focus: #f2b964;
    --hover-color: rgba(242, 185, 100, 0.12);
    --pressed-color: rgba(242, 185, 100, 0.16);
    --selected-color: rgba(242, 185, 100, 0.2);
    --mica-background: rgba(32, 32, 32, 0.7);
    --mica-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Antonio', sans-serif;
}

body {
    background: var(--background-default);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background-color var(--animation-normal) var(--easing-default);
    backdrop-filter: blur(10px);
    -webkit-font-smoothing: antialiased;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
}

.logo-container {
    margin-bottom: 3rem;
    animation: fadeInDown var(--animation-normal) var(--easing-decelerate);
}

.logo {
    max-width: 200px;
    height: auto;
    transition: filter var(--animation-normal) var(--easing-default);
}

[data-theme="dark"] .logo {
    filter: brightness(0) invert(1);
}

.content {
    background: var(--mica-background);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--elevation-4);
    animation: fadeInUp var(--animation-normal) var(--easing-decelerate);
    transition: all var(--animation-normal) var(--easing-default);
    border: 1px solid var(--mica-border);
    backdrop-filter: blur(10px);
}

h1 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2rem;
    transition: color var(--animation-normal) var(--easing-default);
    letter-spacing: -0.5px;
}

.destination-selector {
    position: relative;
    margin-bottom: 2rem;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background: var(--surface-default);
    cursor: pointer;
    transition: all var(--animation-normal) var(--easing-default);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.dropdown-header:hover {
    border-color: var(--border-focus);
    background: var(--hover-color);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    list-style: none;
    padding: 4px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top;
    transition: all var(--animation-normal) var(--easing-default);
    z-index: 1000;
    box-shadow: var(--elevation-4);
    text-align: left;
}

.dropdown-list.active {
    max-height: 300px;
    opacity: 1;
    transform: scale(1);
}

.dropdown-list li {
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all var(--animation-normal) var(--easing-default);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9375rem;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 4px;
    margin: 0;
    transform-origin: left;
    will-change: transform, background-color;
}

.dropdown-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: all var(--animation-normal) var(--easing-default);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform, opacity;
}

.dropdown-list li:hover {
    background: var(--hover-color);
    transform: translateX(2px);
}

.dropdown-list li.selected {
    background: var(--selected-color);
    color: var(--text-primary);
}

.dropdown-list li.selected::before {
    opacity: 1;
    transform: scaleX(1);
}

.dropdown-list li:focus {
    outline: none;
    background: var(--hover-color);
}

.dropdown-list li:active {
    background: var(--pressed-color);
    transition-duration: var(--animation-fast);
}

.dropdown-list li:active::before {
    opacity: 1;
    transform: scaleX(1);
}

.select-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-primary);
    transition: transform var(--animation-normal) var(--easing-default);
    opacity: 0.7;
    margin-left: 8px;
    transform-origin: center;
}

.custom-dropdown.active .select-arrow {
    transform: rotate(180deg);
}

/* Remove old select styles */
.destination-dropdown,
.destination-dropdown option {
    display: none;
}

.go-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--animation-normal) var(--easing-default);
    opacity: 0.7;
    position: relative;
    overflow: hidden;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.3px;
    transform-origin: center;
    will-change: transform, background-color;
}

.go-button:not(:disabled) {
    opacity: 1;
}

.go-button:not(:disabled):hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--elevation-2);
}

.go-button:not(:disabled):active {
    background-color: var(--primary-dark);
    transform: translateY(0);
    transition-duration: var(--animation-fast);
    box-shadow: none;
}

.go-button:disabled {
    cursor: not-allowed;
    background-color: var(--border-default);
    opacity: 0.5;
}

.button-content {
    position: relative;
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .content {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--animation-normal) var(--easing-default);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    will-change: transform, background-color;
}

.theme-switch:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

.theme-switch:active {
    background: var(--pressed-color);
    transform: translateY(0);
    transition-duration: var(--animation-fast);
}

.theme-switch svg {
    width: 20px;
    height: 20px;
    transition: transform var(--animation-normal) var(--easing-default);
}

.theme-switch:hover svg {
    transform: rotate(15deg);
} 