body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0d1117;
    color: #c9d1d9;
}

.section {
    text-align: center;
    background: #161b22;
    padding: 24px;
    border: 1px solid #30363d;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none !important;
}

#mapContainer {
    width: 90vw;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

#map {
    width: 100%;
    flex-grow: 1;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
}

/* Inverts only the map tiles to make it dark mode friendly without affecting markers/popups */
.leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.user {
    margin-bottom: 20px;
}

.user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #0d1117;
}

.user h2 {
    color: #f0f6fc;
    margin-top: 10px;
    margin-bottom: 0;
}

.actions {
    margin-top: 20px;
}

.actions h3 {
    color: #8b949e;
    font-size: 16px;
}

.actions input {
    padding: 10px 12px;
    margin-bottom: 12px;
    width: 80%;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    color: #c9d1d9;
    background-color: #0d1117;
}

.actions input:focus {
    border-color: #58a6ff;
}

button {
    padding: 10px 18px;
    cursor: pointer;
    margin: 6px;
    background-color: #1f6feb;
    color: #ffffff;
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #388bfd;
}

hr {
    border: 0;
    height: 1px;
    background: #30363d;
    margin: 20px 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#roomDisplay {
    font-weight: bold;
    color: #f0f6fc;
}

#sosBtn {
    background-color: #da3633;
    color: white;
    font-weight: bold;
    border: 1px solid rgba(240, 246, 252, 0.1);
}

#sosBtn:hover {
    background-color: #f85149;
}