.multi-select-container {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.multi-select-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 2px;
    transition: background-color 0.2s ease, color 0.2s;
}

.multi-select-item:hover {
    background-color: #e9ecef;
}

.multi-select-item.selected {
    background-color: #007bff;
    color: white;
}
.multi-select-item.selected:hover {
    background-color: #0056b3;
}

.selected-indicator-container {
    margin-top: 5px;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9em;
    min-height: 20px;
    word-wrap: break-word;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.selected-indicator-container.indicator-empty {
    justify-content: flex-start;
}

.selected-indicator-btn {
    display: inline-flex;
    align-items: center;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bce8f1;
    padding: 4px 8px;
    border-radius: 12px;
    margin: 0 6px 6px 0;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
}

.selected-indicator-btn:hover {
    background-color: #bce8f1;
    border-color: #a6d8e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.selected-indicator-btn .deselect-x {
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
    color: #a94442;
    transition: color 0.2s;
}

.selected-indicator-btn:hover .deselect-x {
    color: #d9534f;
}

.selected-indicator-btn.pokemon-target {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.selected-indicator-btn.pokemon-target:hover {
    background-color: #ffeeba;
}

.selected-indicator-btn.pokemon-target .deselect-x {
    display: none;
}

.status {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow-y: auto;
    transition: background-color 0.3s, border-color 0.3s;
    background-color: #e9ecef;
    color: #495057;
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
    height: 30rem;
}

.highlight-key {
    color: #007bff;
    font-weight: bold;
}

.highlight-orange {
    color: orange;
    font-weight: bold;
}

#pokemonSearchContainer .control-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#pokemonSearchContainer .control-group label {
    margin-left: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-animation-name: fadeIn;
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
    transition: background-color 0.3s, color 0.3s;
}

.modal-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-pokemon-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

#modal-pokemon-list-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#modal-pokemon-list-container li {
    padding: 6px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

#modal-pokemon-list-container li:last-child {
    border-bottom: none;
}

#modal-pokemon-list-container .pokemon-name {
    font-weight: bold;
    margin-right: 10px;
}

#modal-pokemon-list-container .spawn-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

@-webkit-keyframes slideIn {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        margin-top: 0;
        opacity: 0;
    }
    to {
        margin-top: 10%;
        opacity: 1;
    }
}

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

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

body.dark-theme .multi-select-container {
    background-color: #2a2a2a;
    border-color: #555;
}

body.dark-theme .multi-select-item {
    color: #e0e0e0;
}

body.dark-theme .multi-select-item:hover {
    background-color: #3a3a3a;
}

body.dark-theme .multi-select-item.selected,
body.dark-theme .multi-select-item.selected:hover {
    background-color: #007bff;
    color: white;
}

body.dark-theme .selected-indicator-container {
    background-color: #2a2a2a;
    border-color: #444;
}

body.dark-theme .selected-indicator-btn {
    background-color: #0c5460;
    color: #d1ecf1;
    border-color: #17a2b8;
}

body.dark-theme .selected-indicator-btn:hover {
    background-color: #17a2b8;
}
body.dark-theme .selected-indicator-btn.pokemon-target {
    background-color: #4a4121;
    color: #f0e68c;
    border-color: #5a5131;
}

body.dark-theme .highlight-key {
    color: #00aaff;
}

body.dark-theme .status {
    background-color: #333;
    border-color: #555;
    color: #ccc;
}

body.dark-theme .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .modal-close-btn {
    color: #aaa;
}
body.dark-theme .modal-close-btn:hover {
    color: #fff;
}

#resetButton {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, border-color 0.2s;
}

#resetButton:hover {
    background-color: #f1b0b7;
    border-color: #dc3545;
}

body.dark-theme #resetButton {
    background-color: #5a1a22;
    border-color: #a94442;
    color: #f8d7da;
}

body.dark-theme #resetButton:hover {
    background-color: #721c24;
    border-color: #a94442;
}

#path-toggle {
    padding: 8px 12px;
    border: 1px solid #007bff;
    background-color: #e7f3ff;
    color: #004085;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, border-color 0.2s;
}

#path-toggle:hover {
    background-color: #cce5ff;
    border-color: #007bff;
}

body.dark-theme #path-toggle {
    background-color: #004085;
    border-color: #007bff;
    color: #e7f3ff;
}

body.dark-theme #path-toggle:hover {
    background-color: #0056b3;
    border-color: #007bff;
}

#path-toggle.active {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

#path-toggle.active:hover {
    background-color: #ffeeba;
}

body.dark-theme #path-toggle.active {
    background-color: #856404;
    border-color: #ffeeba;
    color: #fff3cd;
}

body.dark-theme #path-toggle.active:hover {
    background-color: #a07d05;
}
