:root {
    --bg-color: #121212;
    --panel-bg: rgba(30, 30, 30, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
#sidebar {
    width: 350px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.primary-btn:active {
    transform: translateY(1px);
}

.primary-btn:disabled {
    background-color: #4b5563;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.secondary-btn.active {
    background-color: rgba(255, 204, 51, 0.2);
    border-color: #ffcc33;
    color: #ffcc33;
}

/* Status Panel */
#status-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

#status-panel.hidden, #results-panel.hidden {
    display: none;
}

#results-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#results-panel h3 {
    font-size: 16px;
    color: var(--success-color);
    margin-bottom: 8px;
}

#results-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Loader Animation */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Map Styling */
.map {
    flex-grow: 1;
    height: 100%;
    background-color: #242424;
}
