:root {
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --danger: #ef4444;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: var(--text-primary);
    overflow: hidden;
}

#map {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 320px;
    max-height: calc(100vh - 40px);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    z-index: 1000;
    padding: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.sidebar h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

input,
select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

input:focus,
select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.button-group {
    display: flex;
    gap: 8px;
}

.button-group .input-group {
    margin: 0;
}

.button-group input {
    padding: 4px 8px;
    font-size: 0.8rem;
}

button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button.secondary {
    background: rgba(255, 255, 255, 0.1);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blip-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.blip-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.blip-info {
    display: flex;
    flex-direction: column;
}

.blip-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.blip-coords {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.delete-btn {
    background: transparent;
    color: var(--danger);
    padding: 4px 8px;
    font-size: 1.2rem;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: none;
}

/* Customizing Leaflet Controls */
.leaflet-control-layers {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-layers-list {
    padding: 8px;
}

.leaflet-container {
    background: #000 !important;
}