/* HacktsuAI Header Redesign Styles */

#main-header {
    background: white;
    color: #333;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ヘッダートップセクション */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    gap: 16px;
    flex-wrap: wrap;
}

/* 対象者セレクタ */
.header-target-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    min-width: 200px;
}

.target-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.target-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    min-width: 100px;
    white-space: nowrap;
}

#header-target-select {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    left: 0;
    top: 0;
    appearance: none;
}

.dropdown-icon {
    font-size: 11px;
    color: #999;
    pointer-events: none;
    flex-shrink: 0;
}

/* ヘッダーアクション */
.header-actions {
    display: flex;
    gap: 10px;
}

.header-user-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-user-select:hover {
    border-color: #999;
    background: #fafafa;
}

.header-user-select option {
    background: white;
    color: #333;
    padding: 8px;
}

/* タブナビゲーション */
.tab-nav {
    display: flex;
    justify-content: flex-start;
    background: white;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e5e5e5;
    width: 100%;
}

.tab-item {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    background: transparent;
    border-bottom: 3px solid transparent;
}

.tab-item:last-child {
    border-right: none;
}

.tab-item:hover {
    background: #fcfcfc;
    color: #666;
}

.tab-item.active {
    color: #333;
    border-bottom-color: #FDCC28;
}

.tab-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 10px 12px;
        gap: 10px;
    }

    .header-target-selector {
        width: 100%;
        min-width: auto;
    }

    .target-name {
        font-size: 13px;
    }

    .header-actions {
        width: 100%;
    }

    .header-user-select {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .tab-item {
        font-size: 12px;
        padding: 10px 8px;
    }

    .tab-icon {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .tab-item {
        font-size: 11px;
        padding: 8px 6px;
    }

    .target-name {
        font-size: 12px;
        min-width: 80px;
    }

    .target-icon {
        font-size: 24px;
    }
}