* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #334155;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    text-align: center;
    position: relative;
    z-index: 100;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #64748b;
}

#scene-container {
    flex: 1;
    position: relative;
    min-height: 60vh;
}

#scene-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
}

.control-section {
    margin-bottom: 1.5rem;
}

.control-section h3 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn, .view-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover, .view-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.category-btn.active, .view-btn.active {
    background: #f59e0b;
    color: white;
    font-weight: 600;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#timeSlider {
    width: 100%;
    margin-bottom: 0.5rem;
}

#timeLabel {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

#weatherSelect {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #334155;
    backdrop-filter: blur(10px);
}

.view-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-panel {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-panel h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-panel p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.landmark-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bottom-toolbar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-toolbar button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(245, 158, 11, 0.9);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.bottom-toolbar button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    color: #64748b;
    font-size: 0.9rem;
}

.footer a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d97706;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .sidebar {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 1rem;
        margin-bottom: 0;
    }
    
    #scene-container {
        min-height: 50vh;
    }
    
    .bottom-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .bottom-toolbar button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .sidebar {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .category-buttons {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.7);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-btn, .view-btn {
    animation: float 6s ease-in-out infinite;
}

.category-btn:nth-child(2) { animation-delay: -1s; }
.category-btn:nth-child(3) { animation-delay: -2s; }
.category-btn:nth-child(4) { animation-delay: -3s; }
.category-btn:nth-child(5) { animation-delay: -4s; }

/* Glassmorphism effects */
.header, .sidebar, .bottom-toolbar, .footer {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhance focus states for accessibility */
button:focus, input:focus, select:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}