/* ==============================================
   Header
   ============================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.page-header-content {
    flex: 1;
    min-width: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--text-tertiary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* Quick actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Search bar in header */
.header-search {
    position: relative;
    width: 280px;
}

.header-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
}

.header-search input::placeholder {
    color: var(--text-tertiary);
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .header-search {
        width: 100%;
        order: 10;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-right {
        width: 100%;
        justify-content: space-between;
    }
}
