:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --sidebar-bg: rgba(30, 41, 59, 0.85);
    /* Glassmorphism */
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --border-color: rgba(255, 255, 255, 0.1);
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    overflow: hidden;
}

#app {
    display: flex;
    height: 100vh;
}

#sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}


header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 4px 0 0 0;
}

.control-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.control-group h3 {
    margin-top: 0;
    font-size: 0.95rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.instruction {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

input[type="number"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    width: 60px;
    text-align: right;
}

button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent-color);
    color: #0f172a;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

button.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

#map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.status-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}