#adminAuthError {
    color: #dc3545;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}

#adminAuthOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10010;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

#adminAuthPanel {
    background-color: #2a2f37;
    border: 2px solid #3f8ff0;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eee;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#adminAuthPanel h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.25rem;
    text-align: center;
}

#adminAuthPanel input[type="password"] {
    background-color: #1f2329;
    color: #fff;
    border: 2px solid #273657;
    border-radius: 4px;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

#adminAuthPanel input[type="password"]:focus {
    outline: none;
    border-color: #3f8ff0;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-buttons button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#authCancelBtn {
    background-color: #6c757d;
    color: white;
}

#authCancelBtn:hover {
    background-color: #5c636a;
}

.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
    justify-content: center;
}

#authLoginBtn {
    background-color: #0d6efd;
    color: white;
}

#authLoginBtn:hover {
    background-color: #0b5ed7;
}

#poiAdminOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10005;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.hidden {
    display: none !important;
}

#poiAdminPanel {
    background-color: #2a2f37;
    border: 2px solid #3f8ff0;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eee;
}

#poiAdminHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #273657;
}

#poiAdminHeader h3 {
    margin: 0;
    font-size: 1.2rem;
}

#poiAdminCloseButton {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

#poiAdminContent {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poi-form-group {
    display: flex;
    flex-direction: column;
}

.poi-form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.poi-form-group input,
.poi-form-group textarea {
    background-color: #1f2329;
    color: #fff;
    border: 2px solid #273657;
    border-radius: 4px;
    padding: 0.6rem;
}

.poi-form-group input:focus,
.poi-form-group textarea:focus {
    outline: none;
    border-color: #3f8ff0;
}

.poi-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.poi-coords-group {
    display: flex;
    gap: 1rem;
}

.poi-map-helper-text {
    font-style: italic;
    color: #888;
    text-align: center;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    border: 1px dashed #444;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.poi-map-helper-text:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.poi-button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#poiAdminSaveButton {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#poiAdminSaveButton:hover {
    background-color: #0b5ed7;
}

#poiAdminDeleteButton {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#poiAdminDeleteButton:hover {
    background-color: #bb2d3b;
}


#iconPickerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10006;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#iconPickerPanel {
    background-color: #20232a;
    border: 2px solid #273657;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eee;
    display: flex;
    flex-direction: column;
}

#iconPickerHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #273657;
}

#iconPickerHeader h3 { 
    margin: 0; 
}
#iconPickerCloseButton { 
    background: none; 
    border: none; 
    color: #aaa; 
    font-size: 2rem; 
    line-height: 1; 
    cursor: pointer; 
}

#iconPickerContent {
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 1rem;
}

.icon-picker-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.icon-picker-item:hover {
    border-color: #3f8ff0;
    background-color: rgba(63, 143, 240, 0.2);
}

.icon-picker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.poi-icon-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poi-icon-input-group input {
    flex-grow: 1;
}


.poi-size-preset-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.poi-size-preset-btn {
    flex-grow: 1;
    background-color: #1f2329;
    color: #eee;
    border: 2px solid #273657;
    border-radius: 4px;
    padding: 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.poi-size-preset-btn:hover {
    border-color: #555;
}

.poi-size-preset-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: bold;
}