* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 300px;
    background: #1a1a2e;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.stats {
    background: #16213e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.stats span {
    font-size: 32px;
    font-weight: bold;
    color: #00d4ff;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: #00d4ff;
    color: #000;
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

.footprint-list h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #888;
}

.footprint-list ul {
    list-style: none;
}

.footprint-list li {
    background: #16213e;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.footprint-list li:hover {
    background: #1f3460;
}

.footprint-list li .name {
    font-weight: bold;
    margin-bottom: 4px;
}

.footprint-list li .coords {
    font-size: 12px;
    color: #888;
}

.footprint-list li .delete-btn {
    float: right;
    color: #ff4757;
    cursor: pointer;
}

#map {
    flex: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 350px;
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.modal-content textarea {
    height: 80px;
    resize: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons .btn {
    flex: 1;
}