﻿.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box;
}

    .ui-autocomplete > li > div {
        display: block;
        padding: 3px 20px;
        clear: both;
        font-weight: normal;
        line-height: 1.42857143;
        color: #333333;
        white-space: nowrap;
    }

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
    cursor: pointer;
}

.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


.autocomplete-item {
    padding: 5px;
}

/* Main flex container for content */
.autocomplete-content {
    display: flex;
    flex-direction: row; /* Default for desktop */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Desktop styling */
.course-name {
    font-size: 15px;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-subcategory {
    font-size: 13px;
    color: gray;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile styling */
@media (max-width: 767px) {
    .autocomplete-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-name {
        font-size: 14px;
        font-weight: 500;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }

    .category-subcategory {
        font-size: 12px;
        margin-top: 4px;
        margin-left: 10px;
        color: gray;
        white-space: normal;
        word-break: break-word;
    }
}


.x-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    text-align: center;
    background-color: #fafafa; /* softer very light grey */
    border: 1px solid #f0f0f0; /* extremely subtle border */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.x-letter {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    font-family: Arial, sans-serif;
}

.x-button:hover {
    background-color: #ececec; /* slightly darker on hover */
    border-color: #ddd; /* still soft on hover */
}






/* Menu item style */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(0, 123, 255, 0.05); /* subtle hover */
        border-radius: 0.25rem;
        font-weight: 600;
    }

/* Dropdown menu enhancements */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 0.25rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease-in-out;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
        font-weight: 500;
    }

.nav-link.dropdown-toggle::after {
    display: none !important;
}
