.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.4);
    border: solid rgba(250, 235, 215, 0.4) 1px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: solid rgba(250, 235, 215, 0.4) 1px;
}

.modal-header h3 {
    margin: 0;
    color: antiquewhite;
    font-size: 14px;
    font-weight: normal;
}

.modal-settings-close {
    background: none;
    border: none;
    color: antiquewhite;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.modal-settings-add {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: antiquewhite;
    padding: 6px 12px;
    margin: 8px 0;
    cursor: pointer;
    font-size: 12px;
    float: right;
}

.modal-settings-add:hover {
    color: whitesmoke;
    background: rgba(255, 255, 255, 0.2);
}

.modal-settings-close:hover {
    color: whitesmoke;
    opacity: 1;
}

.modal-body {
    padding: 12px;
    flex-grow: 1;
}

.form-group {
    display: flex;
    column-gap: 18px;
    margin-bottom: 12px;
}

fieldset.form-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
}

fieldset.form-group legend {
    color: darkgrey;
    font-size: 12px;
}

.form-subgroup {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: antiquewhite;
    font-size: 12px;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: whitesmoke;
    font-size: 13px;
}

/* Hide number input spinners */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
    /* Firefox */
    appearance: textfield;
    /* Standard */
}

.form-group select {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: whitesmoke;
    font-size: 13px;
    cursor: pointer;
}

.form-group select option {
    background-color: #1a1a1a;
    color: whitesmoke;
}

.modal-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.modal-settings-apply {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: antiquewhite;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.modal-settings-apply:hover {
    color: whitesmoke;
    background: rgba(255, 255, 255, 0.2);
}

#location-results {
    position: absolute;
    color: whitesmoke;
    font-size: 13px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #666;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 20px);
    z-index: 1001;
    display: none;
}

#location-results div {
    padding: 8px 12px;
    cursor: pointer;
}

#location-results div:hover {
    background: rgba(80, 80, 80, 0.95);
}