/* Override Bootstrap Modal Styles */
.modal-content.cabin-widget {
    color: #fff;
    background-color: #0f1723;
    border: 1px solid #334155;
    border-radius: 1.5em;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-title {
    color: #fff;
}

/* Fix the Close Button (X) */
.modal-header .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
    outline: none;
}

.modal-header .close:hover {
    opacity: 1;
    color: #fece00;
    /* Orange hover */
}

/* Ensure the Unified Bar looks right inside the modal */
.cabin-url-bar {
    display: flex;
    background-color: #1e293b;
    /* Slate 800 */
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* The Unified Container */
.cabin-url-bar {
    display: flex;
    background-color: #1e293b;
    /* Slate 800 */
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s;
}

.cabin-url-bar:focus-within {
    border-color: #fece00;
    /* Focus ring */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* The Inputs inside */
.cabin-url-input {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 10px;
    font-family: 'Courier New', monospace;
    /* Terminal vibe */
    outline: none;
    width: 27%;
}

.cabin-url-input::placeholder {
    color: #64748b;
}

/* The Dividers */
.cabin-divider {
    color: #64748b;
    padding: 12px 5px;
    font-weight: bold;
    user-select: none;
    background: #1e293b;
}

.cabin-branch-input {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 10px;
    font-family: 'Courier New', monospace;
    /* Terminal vibe */
    outline: none;
    width: 27%;
}

.cabin-branch-input::placeholder {
    color: #64748b;
}


/* Spinner positioning */
.url-loader {
    position: absolute;
    right: 10px;
    top: 15px;
}

/* Autocomplete Dropdown Styling */
.suggestions-list {
    background-color: #1e293b;
    /* Slate 800 - Matches Input */
    border: 1px solid #334155;
    border-top: none;
    /* Merges visually with the input bar */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 200px;
    overflow-y: auto;

    /* Positioning */
    position: absolute;
    top: 100%;
    /* Push it exactly below the input bar */
    left: 0;
    width: 100%;
    z-index: 1055;
    /* Higher than Bootstrap Modal (usually 1050) */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Individual Items */
.suggestion-item {
    padding: 12px 15px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    /* Match input font */
    color: #cbd5e1;
    /* Slate 300 */
    border-bottom: 1px solid #334155;
    cursor: pointer;
    transition: background 0.1s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #334155;
    /* Slate 700 */
    color: #fece00;
    /* Orange hover */
}

/* Scrollbar styling for the list (Optional but nice) */
.suggestions-list::-webkit-scrollbar {
    width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #0f172a;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}