/* 固定标签栏样式 - ima.copilot风格 */
.tabs-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 40px;
    margin-left: 56px; /* 与侧边栏宽度一致 */
    width: calc(100% - 56px); /* 减去侧边栏宽度 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
}

.tabs {
    display: flex;
    background-color: transparent;
    padding: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    position: relative;
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    margin-right: 2px;
    border-radius: 4px;
    font-size: 12px;
    height: 28px;
}

.tab.active {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border-bottom: none;
}

.tab-close {
    margin-left: 6px;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.tab:hover .tab-close {
    opacity: 1;
}

.tab-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 简约单色线条图标 */
.tab-icon {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* 右侧"我的"按钮 */
.my-profile {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.my-profile:hover {
    background-color: var(--bg-secondary);
}

.my-profile-icon {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* 新标签页按钮样式 */
.new-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: normal;
}

.new-tab-btn:hover {
    background-color: var(--bg-secondary);
}

/* 浏览器导航条样式 */
.browser-nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 16px;
    height: 36px;
    position: fixed;
    top: 40px; /* 紧跟标签栏 */
    right: 0;
    margin-left: 56px; /* 与侧边栏宽度一致 */
    width: calc(100% - 56px); /* 减去侧边栏宽度 */
    z-index: 99;
    background-color: var(--bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(249, 250, 251, 0.8);
}

.browser-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 4px;
    color: var(--text-secondary);
}

.browser-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.browser-address-bar {
    flex: 1;
    border-radius: 4px;
    height: 28px;
    margin: 0 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.browser-address-bar:hover {
    border-color: var(--primary-hover);
}

.browser-bookmark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.browser-bookmark-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}