* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#loading, #error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#error {
    background-color: rgba(255, 200, 200, 0.8);
}

.status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    z-index: 2;
    font-size: 14px;
}

.poi-instructions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    z-index: 2;
    font-size: 14px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.speech-status, .location-update-status, .drag-instructions {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    z-index: 3;
    font-size: 14px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in;
    max-width: 80%;
    text-align: center;
    transition: opacity 0.5s ease;
}

.speech-status {
    top: 70px;
    background-color: rgba(76, 175, 80, 0.9);
}

.location-update-status {
    bottom: 70px;
    background-color: rgba(33, 150, 243, 0.9);
    max-height: 35px;
}

.drag-instructions {
    top: 20px;
    background-color: rgba(255, 152, 0, 0.9);
    font-weight: bold;
}

.fading {
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* POI Popup Styles */
.poi-popup {
    min-width: 200px;
    max-width: 300px;
}

.poi-popup h3 {
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.poi-popup .description {
    margin-bottom: 10px;
    font-style: italic;
    font-size: 14px;
}

.poi-popup .content {
    margin-bottom: 15px;
    font-size: 14px;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.popup-footer button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.popup-footer button:first-child {
    margin-left: 0;
}

.play-poi-btn, .move-poi-btn {
    background-color: #2196F3;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
}

.move-poi-btn {
    background-color: #FF9800;
}

.edit-poi-btn {
    background-color: #4CAF50;
    color: white;
}

.delete-poi-btn {
    background-color: #f44336;
    color: white;
}

.location-info {
    margin-bottom: 8px;
    color: #666;
    font-size: 12px;
}

.done-moving-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.drag-popup {
    text-align: center;
    padding: 5px;
}

/* Settings panel styles */
.settings-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

.settings-panel {
    position: absolute;
    top: 65px;
    right: 15px;
    width: 280px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.settings-panel.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.settings-panel h3 {
    margin: 0 0 15px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.settings-group {
    margin-bottom: 15px;
}

.settings-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.slider-container {
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    flex: 1;
    margin-right: 10px;
}

.slider-container span {
    width: 50px;
    text-align: right;
}

#settings-close {
    width: 100%;
    padding: 8px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* POI Form Styles */
#poi-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

#poi-form {
    display: flex;
    flex-direction: column;
}

#poi-form h3 {
    margin-bottom: 15px;
    text-align: center;
}

#poi-form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

#poi-form input, 
#poi-form textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.form-buttons button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

.form-buttons button[type="button"] {
    background-color: #f44336;
    color: white;
}

.hidden {
    display: none;
}