/* Request Interview Dropdown Styles */
.request-interview-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    width: 200px;
    padding: 4px 0;
    margin: 0;
    font-size: 13px;
    font-family: inherit;
    display: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.request-interview-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.request-interview-dropdown .dropdown-header {
    display: none; /* Remove header to match View Action dropdown */
}

.request-interview-dropdown .dropdown-item {
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    /* color: #333; */
    transition: background-color 0.1s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 0;
    margin: 0;
}

.request-interview-dropdown .dropdown-item:not(:last-child) {
    border-bottom: none;
}

.request-interview-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
    /* color: #333; */
}

.request-interview-dropdown .dropdown-item:active {
    background-color: #ebebeb;
}

/* Disabled dropdown item styles */
.request-interview-dropdown .dropdown-item:disabled,
.request-interview-dropdown .dropdown-item[disabled] {
    color: #999 !important;
    cursor: not-allowed !important;
    background-color: transparent !important;
    opacity: 0.6;
}

.request-interview-dropdown .dropdown-item:disabled:hover,
.request-interview-dropdown .dropdown-item[disabled]:hover {
    background-color: transparent !important;
    color: #999 !important;
}

.request-interview-dropdown .dropdown-item:disabled i,
.request-interview-dropdown .dropdown-item[disabled] i {
    color: #ccc !important;
}

.request-interview-dropdown .dropdown-item i {
    margin-right: 8px;
    width: 16px;
    color: #666;
    flex-shrink: 0;
    font-size: 13px;
    text-align: center;
}

.request-interview-dropdown .dropdown-item .loader {
    margin-left: auto;
    display: none;
    color: #007bff;
}

.request-interview-dropdown .dropdown-item .loader.show {
    display: inline-block;
}

.request-interview-dropdown .zip-container {
    position: relative;
}

.request-interview-dropdown .cc-label {
    font-size: 9px;
    color: #6c757d;
    font-weight: normal;
}

.request-interview-dropdown .cc-label {
    font-size: 10px;
    color: #666;
    font-weight: normal;
}

/* Positioning classes for different screen sizes */
.request-interview-dropdown.position-left {
    transform-origin: top right;
}

.request-interview-dropdown.position-right {
    transform-origin: top left;
}

.request-interview-dropdown.position-below {
    margin-top: -8px;
}

.request-interview-dropdown.position-mobile {
    /* left: 50% !important; */
    transform: translateX(-50%);
}

.request-interview-dropdown.position-above {
    transform-origin: bottom center;
}

.request-interview-dropdown.position-above.show {
    transform: translateY(0);
}

/* Hover-friendly styling for buttons */
.dt-button:hover {
    transition: background-color 0.2s ease;
}

/* Disabled DataTable button styling */
.dt-button .disabled,
.dt-button.disabled {
    color: #6c757d !important;
    opacity: 0.5;
    cursor: not-allowed !important;
}

.dt-button .disabled:hover,
.dt-button.disabled:hover {
    color: #6c757d !important;
    opacity: 0.5;
}

/* Specific styling for disabled icons within buttons */
.dt-button i.disabled {
    color: #6c757d !important;
    opacity: 0.5;
}

/* Disabled button hover prevention */
.dt-button.disabled:hover {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Additional disabled styling for FontAwesome icons */
.fa.disabled,
.fas.disabled {
    color: #6c757d !important;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Additional disabled styling for DataTable collection buttons */
.dt-button.disabled,
.dt-button:has(.disabled) {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.dt-button.disabled:hover,
.dt-button:has(.disabled):hover {
    background-color: transparent !important;
    opacity: 0.6;
}

/* Ensure smooth dropdown transitions for hover */
.request-interview-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.request-interview-dropdown:not(.show) {
    pointer-events: none;
}

/* Hover delay indicators - optional visual feedback */
.dt-button.dropdown-hover {
    background-color: rgba(0, 123, 255, 0.1);
}

@media (max-width: 768px) {
    .request-interview-dropdown {
        width: 200px;
        max-width: calc(100vw - 20px);
    }
    
    .request-interview-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 14px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .request-interview-dropdown {
        width: calc(100vw - 20px);
        max-width: 180px;
    }
    
    .request-interview-dropdown .dropdown-item {
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .request-interview-dropdown .dropdown-item i {
        margin-right: 10px;
        width: 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .request-interview-dropdown .dropdown-item {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.request-interview-dropdown .fa-spinner {
    animation: spin 1s linear infinite;
}

@media (prefers-contrast: high) {
    .request-interview-dropdown {
        border-width: 2px;
        border-color: #000;
    }
    
    .request-interview-dropdown .dropdown-item:hover {
        background-color: #000;
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .request-interview-dropdown {
        transition: none;
    }
    
    .request-interview-dropdown .dropdown-item {
        transition: none;
    }
    
    .request-interview-dropdown .fa-spinner {
        animation: none;
    }
}

.request-interview-dropdown .dropdown-item:focus {
    outline: 1px dotted #333;
    outline-offset: -1px;
    background-color: #f5f5f5;
}

.request-interview-dropdown .dropdown-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.request-interview-dropdown .dropdown-item.loading .loader {
    display: inline-block;
}
