/* User Icon Styles - Thư Viện Tranh */

/* Đảm bảo form hiển thị các phần tử con theo chiều ngang */
.form-collection {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

/* Đảm bảo search form cũng hiển thị theo chiều ngang */
.search-form form {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

/* Icon user nằm bên ngoài thanh tìm kiếm */
.user-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 50px; /* Tăng chiều cao từ 42px lên 50px */
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: 0.5rem; /* Khoảng cách với thanh tìm kiếm */
    position: relative; /* Cho dropdown */
}

.user-icon-container:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.user-icon-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6c757d;
    text-decoration: none;
}

.user-icon-container i {
    font-size: 1.3rem; /* Tăng kích thước icon từ 1.1rem lên 1.3rem */
}

/* Dropdown menu cho icon user */
.user-icon-container .dropdown {
    position: relative;
    width: 100%;
    height: 100%;
}

.user-icon-container .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6c757d;
    text-decoration: none;
}

.user-icon-container .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    padding: 0;
    list-style: none;
}

.user-icon-container .dropdown-menu li {
    list-style: none;
}

.user-icon-container .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 0;
    background: transparent;
}

.user-icon-container .dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Đảm bảo thanh tìm kiếm dài ra */
.show_search {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 12px; /* Tăng padding từ 10px lên 12px */
    height: 50px; /* Thêm chiều cao cố định 50px */
}

.show_search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0; /* Tăng padding từ 10px lên 12px */
    background: transparent;
    font-size: 16px; /* Tăng kích thước font để phù hợp với chiều cao mới */
}

/* Icon kính lúp nằm gọn bên trong thanh tìm kiếm */
.show_search .fa-search {
    color: #666;
    font-size: 16px; /* Tăng kích thước icon từ 14px lên 16px */
    margin-left: 10px;
}

/* Icon hình ảnh trong thanh tìm kiếm */
.show_search .fa-image {
    font-size: 18px; /* Tăng kích thước icon hình ảnh */
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.show_search .fa-image:hover {
    color: #007bff !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .show_search {
        height: 48px; /* Giảm chiều cao một chút trên mobile */
        padding: 0 10px;
    }
    
    .show_search input {
        padding: 10px 0;
        font-size: 15px; /* Giảm font size trên mobile */
    }
    
    .show_search .fa-search {
        font-size: 15px; /* Giảm icon size trên mobile */
    }
    
    .show_search .fa-image {
        font-size: 16px; /* Giảm icon size trên mobile */
    }
    
    .user-icon-container {
        width: 44px;
        height: 48px; /* Giảm chiều cao trên mobile */
    }
    
    .user-icon-container i {
        font-size: 1.2rem; /* Giảm icon size trên mobile */
    }
} 