/**
 * Radle - Destination Override Styles
 *
 * Styles for the destination override UI in the publish metabox.
 */

/* Destination Settings Icon */
.radle-destination-settings-icon {
    transition: transform 0.2s ease;
    font-size: 18px !important;
    width: 18px;
    height: 18px;
}

.radle-destination-settings-icon:hover {
    color: #135e96 !important;
}

/* Destination Override Panel */
.radle-destination-override {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Destination Override Container */
.radle-destination-override p {
    overflow: visible;
}

/* Custom Dropdown Container */
#radle_destination_override {
    font-size: 11px;
}

.radle-custom-dropdown {
    position: relative;
    width: 100%;
}

/* Dropdown Trigger Button */
.radle-dropdown-trigger {
    padding: 11px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
}

.radle-dropdown-trigger:hover {
    border-color: #999;
}

.radle-dropdown-trigger.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.radle-dropdown-selected {
    flex: 1;
}

.radle-dropdown-arrow {
    margin-left: 10px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

.radle-dropdown-trigger.active .radle-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Content */
.radle-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.radle-dropdown-content.show {
    display: block;
}

/* Dropdown Options */
.radle-dropdown-option {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.radle-dropdown-option:hover {
    background-color: #f1f1f1;
}

.radle-dropdown-option.active {
    background-color: #e8f4f8;
    font-weight: 600;
}

/* User Profile Option */
.radle-dropdown-option.radle-user-profile {
    border-bottom: 1px solid #e0e0e0;
}

/* Dropdown Divider */
.radle-dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

/* Dropdown Group */
.radle-dropdown-group {
    padding: 8px 0;
}

.radle-dropdown-group-label {
    padding: 8px 16px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
