/* Backend Editor – Plugin-spezifische Enhancements */

/* Row colors for Notdienst entries */
.ndb-row-expired {
    background-color: #fff0f0 !important;
}

.ndb-row-upcoming {
    background-color: #f0f7ff !important;
}

/* Custom Searchable Select */
.ndb-searchable-select {
    position: relative;
    width: 100%;
}

.ndb-select-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-height: 40px;
}

.ndb-select-arrow {
    font-size: 10px;
    color: #888;
}

.ndb-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
}

.ndb-select-dropdown.active {
    display: block;
}

.ndb-select-search-wrap {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.ndb-select-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.ndb-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
}

.ndb-option-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.ndb-option-item:hover {
    background-color: #f0f7ff;
}

.ndb-modal-small {
    max-width: 400px;
}

/* In-Modal Notices */
.ndb-modal-notice {
    display: none;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
    animation: ndbFadeIn 0.3s ease-out;
}

.ndb-modal-notice.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@keyframes ndbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}