/* ===== HEADER SEARCH ===== */
.header-search {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-search form {
    position: relative;
    width: 100%;
    max-width: 200px;
}

/* Search Input - Always Readable */
.header-search .search-input {
    width: 80%;
    border: 1px solid #ccc;
    border: 2px solid #999;
    padding: 6px 30px 6px 10px;
    box-sizing: border-box;
    font-size: 0.95rem;
    color: #000 !important;          /* Ensures typed text is BLACK */
    background-color: #ffffff!important;

}

.header-search .search-input::placeholder {
    color: #888 !important;
}


/* Search Button (Icon) */
.header-search .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #999;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.header-search .search-btn:hover,
.header-search .search-btn:focus {
    color: #666; /* No hover color */
    outline: none;
}

/* ===== POPULAR SEARCH DROPDOWN ===== */
.popular-searches {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 10;
    max-height: 180px;
    overflow-y: auto;
}

.popular-searches li {
    padding: 10px 12px;
    font-size: 0.95rem;
    cursor: pointer;
}

.popular-searches li:hover {
    background: #f5f5f5;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.header-actions .btn-sm {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.header-actions .header-icon i,
.header-actions .dropdown-toggle i {
    font-size: 0.85rem !important;
}

.header-actions .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.4em;
}

/* ===== RESPONSIVE (MOBILE VIEW) ===== */
@media (max-width: 576px) {
    .header-search {
        order: 1;
        width: 100%;
        margin: 4px 0 10px;
    }

    .header-search form {
        max-width: 100%;
    }

    .header-search .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 1rem;
        border: 2px solid #999;
        color: #000 !important;
        background-color: #fff !important;
        -webkit-text-fill-color: #000;
        text-transform: inherit;
        
    }

    .header-search .search-btn {
        right: 12px;
        font-size: 1.2rem;
        color: #666;
    }

    .popular-searches {
        font-size: 1rem;
        max-height: 220px;
    }

    .popular-searches li {
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
    }

    .header-actions {
        order: 2;
        gap: 8px;
    }

    .header-actions .btn-sm {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
