/* Main Header Custom Styles */

/* Search Form Styling */
.search-form {
    margin-left: 10px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    height: 38px; /* Match navbar height */
}

.search-input-group {
    border: 1px solid #dee2e6;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 38px; /* Match navbar height */
    display: flex;
    align-items: center;
}

.search-input-group.expanded {
    min-width: 280px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
    background-color: #f8f9fa;
}

.form-control-navbar {
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 15px;
    font-size: 14px;
    box-shadow: none;
    height: 36px; /* Slightly smaller than container */
    line-height: 1.5;
}

.form-control-navbar:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.btn-navbar {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 0 20px 20px 0;
    transition: all 0.2s ease;
    height: 36px; /* Match input height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-navbar:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-navbar:focus {
    box-shadow: none;
    outline: none;
}

/* Notification Badge */
.navbar-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    border-radius: 50%;
    min-width: 1.2rem;
    text-align: center;
}

/* Notification Dropdown */
.dropdown-menu-lg {
    min-width: 300px;
    max-width: 400px;
}

.dropdown-item {
    white-space: normal;
    word-wrap: break-word;
}

.dropdown-item .float-right {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.dropdown-footer {
    text-align: center;
    font-weight: bold;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input-group.expanded {
        min-width: 220px;
    }
    
    .search-form {
        margin-left: 5px;
        margin-right: 10px;
    }
    
    .dropdown-menu-lg {
        min-width: 280px;
    }
}

@media (max-width: 576px) {
    .search-input-group.expanded {
        min-width: 180px;
    }
    
    .search-form {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .dropdown-menu-lg {
        min-width: 250px;
    }
}
