/* 共通ヘッダースタイル */

/* ヘッダーコンテナ */
.common-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 3px var(--shadow-color);
    flex-shrink: 0;
    z-index: 100;
}

/* ヘッダー左側 */
.common-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ロゴボタン */
.common-header-logo-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.common-header-logo {
    height: 24px;
    width: auto;
    transition: opacity var(--transition-duration) ease;
}

.common-header-logo-button:hover .common-header-logo {
    opacity: 0.8;
}

/* パンくずリスト */
.common-header-breadcrumb-icon {
    color: var(--text-light-color);
}

.common-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-header-breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.common-header-breadcrumb-separator {
    color: var(--text-light-color);
}

/* ヘッダー右側 */
.common-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* アクションボタングループ */
.common-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ヘッダーボタン */
.common-header-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-duration) ease;
}

.common-header-button:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.common-header-button--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}

.common-header-button--primary:hover {
    background: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

.common-header-button--secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.common-header-button--secondary:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

/* アイコンボタン */
.common-header-icon-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-light-color);
    cursor: pointer;
    transition: all var(--transition-duration) ease;
}

.common-header-icon-button:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

/* ヘッダータイトル */
.common-header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* プロジェクト/ページ名 */
.common-header-page-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* ユーザー情報表示（共通） */
.common-header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--hover-bg);
}

.common-header-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.common-header-user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.common-header-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.common-header-user-company-name {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Feather Icons - ヘッダー用アイコン */
/* パンくずナビゲーションのアイコン */
.common-header-breadcrumb-icon {
    width: 16px !important;
    height: 16px !important;
}

/* ヘッダーボタン内のアイコン */
.common-header-button [data-feather],
.common-header-button .feather,
.common-header-icon-button [data-feather],
.common-header-icon-button .feather {
    width: 16px !important;
    height: 16px !important;
}

/* プロジェクトヘッダー用（project-header-*クラスも同様に適用） */
.project-header-breadcrumb-icon {
    width: 16px !important;
    height: 16px !important;
}

.project-header-button [data-feather],
.project-header-button .feather,
.project-header-icon-button [data-feather],
.project-header-icon-button .feather {
    width: 16px !important;
    height: 16px !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .common-header {
        padding: 0 12px;
    }

    .common-header-left {
        gap: 8px;
    }

    .common-header-logo {
        height: 20px;
    }

    .common-header-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .common-header-button span {
        display: none;
    }

    .common-header-page-name {
        font-size: 13px;
    }

    .common-header-breadcrumb-item {
        font-size: 13px;
    }

    /* モバイルでパンくずアイコンを非表示 */
    .common-header-breadcrumb-icon,
    .project-header-breadcrumb-icon {
        display: none;
    }

    /* ユーザー情報をモバイルで非表示 */
    .common-header-user-info {
        display: none;
    }
}
