/*
 * Header Component
 * アプリケーションヘッダーのスタイル定義
 */

.je-header {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--je-spacing-lg);
    background-color: var(--je-bg-secondary);
    border-bottom: 1px solid var(--je-border-color);
    box-shadow: var(--je-shadow-sm);
}

.je-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--je-accent-color-solid);
    color: white;
    border-radius: var(--je-radius-sm);
    font-weight: bold;
}

.je-app-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--je-text-primary);
}

.je-app-subtitle {
    margin-left: var(--je-spacing-sm);
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--je-text-secondary);
}

/* --- Search Bar --- */
.je-search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    margin-right: var(--je-spacing-md);
}

.je-search-input {
    width: 100%;
    padding: 6px 32px 6px 12px;
    border: 1px solid var(--je-border-color);
    border-radius: 9999px; /* Pill shape */
    background-color: var(--je-bg-primary);
    color: var(--je-text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.je-search-input:focus {
    outline: none;
    border-color: var(--je-accent-color-solid);
    box-shadow: 0 0 0 2px var(--je-accent-color);
    width: 300px; /* Expand on focus */
}

.je-search-icon {
    position: absolute;
    right: 10px;
    color: var(--je-text-secondary);
    pointer-events: none;
}

.je-search-clear {
    position: absolute;
    right: 8px;
    color: var(--je-text-secondary);
    cursor: pointer;
    border-radius: 50%;
    padding: 2px;
    display: none; /* Initially hidden */
}
.je-search-clear:hover {
    background-color: var(--je-bg-tertiary);
    color: var(--je-text-primary);
}

.je-search-input:not(:placeholder-shown) + .je-search-icon {
    display: none;
}
.je-search-input:not(:placeholder-shown) ~ .je-search-clear {
    display: block;
}