body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #4a90e2;
}

main {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 30px;
}

h2 {
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.setting-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.setting-item label {
    margin-bottom: 5px;
    font-weight: bold;
}

.setting-item input[type="text"],
.setting-item input[type="password"],
.setting-item input[type="number"],
.setting-item select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #357abd;
}

#history-list .notification-card {
    background: #eef5fc;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 5px solid #4a90e2;
}

#history-list .notification-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

/* Map Container */
#map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sound Options */
.sound-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.sound-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sound-option:hover {
    background-color: #e9ecef;
}

.sound-option input[type="radio"] {
    margin-right: 10px;
}

.sound-option label {
    margin: 0;
    cursor: pointer;
    flex-grow: 1;
}

#preview-sound {
    width: 100%;
    margin-top: 10px;
}


#map {
    height: 350px;
    min-height: 300px;
    width: 100%;
}

/* Responsive map */
@media (max-width: 768px) {
    #map-container {
        height: 300px;
    }
}

/* Hide no-location message when map is visible */
#no-location {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-style: italic;
}

#map-container:not([style*="display: none"]) + #no-location {
    display: none !important;
}
