/**
 * 後台管理 - 工具列樣式
 * Admin Toolbar Styles
 * 黑金/白金主題 (Black-Gold / White-Gold Theme)
 */

/* ==================== 工具列 ==================== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 工具列中的品牌按鈕調整 */
.toolbar-left .brand-tabs {
    margin-bottom: 0;
    margin-left: 0.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box > i {
    position: absolute;
    left: 0.875rem;
    color: #888;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-box input {
    padding: 0.625rem 2.5rem 0.625rem 2.5rem;
    background-color: #2a2a2a;
    border: 1px solid rgba(212, 165, 32, 0.15);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    width: 16rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 32, 0.15);
}

.search-box input:focus + i,
.search-box:focus-within > i {
    color: var(--admin-primary);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.search-clear.show {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background-color: rgba(212, 165, 32, 0.2);
    color: var(--admin-primary);
}

.light-theme .search-box input {
    background-color: #fff;
    border-color: rgba(184, 134, 11, 0.15);
    color: #333;
}

.light-theme .search-box input:focus {
    border-color: var(--admin-primary-dark);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.light-theme .search-box input:focus + i,
.light-theme .search-box:focus-within > i {
    color: var(--admin-primary-dark);
}

.light-theme .search-clear:hover {
    background-color: rgba(184, 134, 11, 0.15);
    color: var(--admin-primary-dark);
}
